[
https://issues.apache.org/jira/browse/SOLR-7249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14363383#comment-14363383
]
Jack Krupansky commented on SOLR-7249:
--------------------------------------
It's best to pursue this type of issue on the Solr user list first.
Have you added debugQuery=true to your request and looked at the parsed_query
in the response? That shows how your query is actually interpreted.
You wrote "AND -area", but that probably should be "NOT area" or simply "-area".
> Solr engine misses null-values in "OR null" part for eDisMax parser
> -------------------------------------------------------------------
>
> Key: SOLR-7249
> URL: https://issues.apache.org/jira/browse/SOLR-7249
> Project: Solr
> Issue Type: Bug
> Components: query parsers
> Affects Versions: 4.10.3
> Environment: Windows 7
> CentOS 6.6
> Reporter: Arsen Li
>
> Solr engine misses null-values in "OR null" part for eDisMax parser
> For example, I have following query:
> ((*:* AND -area:[* TO *]) OR area:[100 TO 300]) AND objectId:40105451
> full query path visible in Solr Admin panel is
> select?q=((*%3A*+AND+-area%3A%5B*+TO+*%5D)+OR+area%3A%5B100+TO+300%5D)+AND+objectId%3A40105451&wt=json&indent=true
> so, it should return record if area between 100 and 300 or area not declared.
> it works ok for default parser, but when I set "edismax" checkbox checked in
> Solr admin panel - it returns nothing ("area" for objectId=40105451 is null).
> Request path is following
> select?q=((*%3A*+AND+-area%3A%5B*+TO+*%5D)+OR+area%3A%5B100+TO+300%5D)+AND+objectId%3A40105451&wt=json&indent=true&defType=edismax&stopwords=true&lowercaseOperators=true
> However, when I move query from "q" field to "q.alt" field - it works ok,
> query is
> select?wt=json&indent=true&defType=edismax&q.alt=((*%3A*+AND+-area%3A%5B*+TO+*%5D)+OR+area%3A%5B100+TO+300%5D)+AND+objectId%3A40105451&stopwords=true&lowercaseOperators=true
> note, asterisks are not saved by editor, refer to
> http://stackoverflow.com/questions/29059460/solr-misses-or-null-query-when-parsing-by-edismax-parser
> if needed more accurate syntax
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]