You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mikhail Khludnev (JIRA)" <ji...@apache.org> on 2018/06/11 18:36:00 UTC

[jira] [Comment Edited] (SOLR-9685) tag a query in JSON syntax

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

Mikhail Khludnev edited comment on SOLR-9685 at 6/11/18 6:35 PM:
-----------------------------------------------------------------

[~osavrasov], beside of incorrect json, it seems like JSON DSL makes {{filters}} a little bit redundant. It's worth to try to write {{parent}} in JSON query DSL and use [bool|https://lucene.apache.org/solr/guide/7_3/json-query-dsl.html#compound-queries] as a child query with tagged filter clauses. 


was (Author: mkhludnev):
[~osavrasov], beside of incorrect json, it seems like JSON DSL makes {{filters}} a little bit redundant. It's worth to try to write {{parent}} in JSON query DSL and use [https://lucene.apache.org/solr/guide/7_3/json-query-dsl.html#compound-queries|bool] as a child query with tagged filter clauses. 

> 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
>            Assignee: Yonik Seeley
>            Priority: Major
>             Fix For: 7.4, master (8.0)
>
>         Attachments: SOLR-9685.patch, SOLR-9685.patch
>
>          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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org