[ 
https://issues.apache.org/jira/browse/SOLR-9685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16471112#comment-16471112
 ] 

Mikhail Khludnev commented on SOLR-9685:
----------------------------------------

Colleagues, (just to name a few [~caomanhdat], [~ysee...@gmail.com], 
[~dsmiley], [~arafalov]) what do you think regarding introducing the following 
json microsyntax?
* {{"#tag" : <"query-literal"|\{query-object}>}} 
* it can be used everywhere and labels the following query with the {{"#tag"}}.
* omitting leading {{#}} is illegal and causes exception
* Leading {{#}} is kept in the tag name. Thus {{ excludeTags:\["#tag"] }}
* Using {{#}} requires quotation, I suppose it's fair. 

I'm really anxious to introduce such significant amendment, since we can't pull 
it back after we announce such API. Please suggest whether you think it's good 
or it's just perfect. 
Here's my {{+1}} for the [linked 
PR|https://github.com/apache/lucene-solr/pull/371] 

> tag a query in JSON syntax
> --------------------------
>
>                 Key: SOLR-9685
>                 URL: https://issues.apache.org/jira/browse/SOLR-9685
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Facet Module, JSON Request API
>            Reporter: Yonik Seeley
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> There should be a way to tag a query/filter in JSON syntax.
> Perhaps these two forms could be equivalent:
> {code}
> "{!tag=COLOR}color:blue"
> { tagged : { COLOR : "color:blue" }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to