[
https://issues.apache.org/jira/browse/SOLR-13402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16818706#comment-16818706
]
Jochen Barth edited comment on SOLR-13402 at 4/16/19 7:14 AM:
--------------------------------------------------------------
I have now double-checked solr-query1 vs solr-query2: they are of the same
content despite the key order of at least 1 hash.
attached solr-query1+2 are assembled by the query part
{code}
P=»{query:{bool:{...}}}« # solr json dsl query syntax
{code}
complete assembled form:
{code}
+P -( {!join ...} P ) # solr standard query parser syntax
{code}
This error can not be reproduced using this simple query:
{code:JSON}
{"query":\{"bool":{"must":"id:*","must_not":"id:http*"}}}
{code}
vs
{code:JSON}
{"query":{"bool":{"must_not":"id:http*","must":"id:*"}}}
{code}
was (Author: jbarth_ubhd):
I have now double-checked solr-query1 vs solr-query2: they are of the same
content despite the key order of at least 1 hash.
attached solr-query1+2 are assembled by the query part
{code}
P=»{query:{bool:{...}}}«
{code}
complete assembled form:
{code}
+P -( \{!join ...} P )
{code}
This error can not be reproduced using this simple query:
{code:JSON}
{"query":\{"bool":{"must":"id:*","must_not":"id:http*"}}}
{code}
vs
{code:JSON}
{"query":{"bool":{"must_not":"id:http*","must":"id:*"}}}
{code}
> json dsl: order of must and must_not in serialization does matter?
> ------------------------------------------------------------------
>
> Key: SOLR-13402
> URL: https://issues.apache.org/jira/browse/SOLR-13402
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 8.0
> Reporter: Jochen Barth
> Priority: Major
> Attachments: solr-query1, solr-query2
>
>
> I have one(1) data structure representing a json dsl query, but depending on
> the serialization (must_not before/after must within "query":\{"bool":{ ...
> }) this does return errnously 0 as numFound.
> See attached files: [^solr-query1] [^solr-query2]
> solr-query1 does return the correct number of hits, solr-query2 does return 0.
> Has the serialization to be "canonical" (keys of hashes sorted?)
> Thanks!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]