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

Erick Erickson commented on SOLR-7249:
--------------------------------------

Please raise usage issues on the user's list before raising a JIRA to confirm 
that what you're seeing is really a code issue. If so _then_ raise a JIRA.

In this case, attach &debug=query to the output and you'll see that the parsed 
output is very much different than what you expect. It is not surprising at all 
that the output from a standard query is different than that from edismax as 
edismax is spreading the terms across a bunch of fields _as clauses_.

> 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]

Reply via email to