[ 
https://issues.apache.org/jira/browse/SOLR-4333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Dyer updated SOLR-4333:
-----------------------------

    Attachment: SOLR-4333.patch

Here's a failing unit test.  If your client escapes the colon, any boolean 
operators (AND|OR|NOT) after the escaped colon get interpreted as query 
operators.  This leads to incorrect logic.  If the default mm=100%, the query 
likely will return no results.
                
> edismax query with escaped colon ignores AND and OR
> ---------------------------------------------------
>
>                 Key: SOLR-4333
>                 URL: https://issues.apache.org/jira/browse/SOLR-4333
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 4.0
>         Environment: tomcat 7.34
> java 7u11
> windows 2008R2
>            Reporter: Robert J. van der Boon
>         Attachments: SOLR-4333.patch
>
>
> When I use the edismax query handler with qf=samenvatting and have a query of 
> the form
> {noformat}
> a\:b AND cde
> {noformat}
> then the parsedquery ends up as:
> {noformat}
> (+(DisjunctionMaxQuery((samenvatting:"a b")) 
> DisjunctionMaxQuery((samenvatting:and)) 
> DisjunctionMaxQuery((samenvatting:cde))))/no_coord
> {noformat}
> note that the AND operator is ignored, and a search for the word AND is 
> performed.
> As far as I've seen it doesn't matter if the part before the \: is a real 
> field or not.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to