[
https://issues.apache.org/jira/browse/SOLR-4023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132083#comment-18132083
]
Nick Shanin commented on SOLR-4023:
-----------------------------------
>From code reading against apache/main b73f03976fa, the classic parser keeps
>Lucene precedence for AND and OR, and the reference guide does not say so
>(solr-ref-guide/modules/query-guide/pages/standard-query-parser.adoc:280-301).
>A candidate is a docs note with a parentheses recommendation, with no grammar
>change. Is that enough for your case?
š¤ AI-generated š¤
> Solr query parser does not correctly handle Boolean precedence
> --------------------------------------------------------------
>
> Key: SOLR-4023
> URL: https://issues.apache.org/jira/browse/SOLR-4023
> Project: Solr
> Issue Type: Bug
> Components: query parsers
> Affects Versions: 3.6, 4.0
> Reporter: Tom Burton-West
> Priority: Major
>
> The default query parser in Solr does not handle precedence of Boolean
> operators in the way most people expect.
>
> āA AND B OR Cā gets interpreted as āA AND (B OR C)ā . There are numerous
> other examples in the JIRA ticket for Lucene 167, this article on the wiki
> http://wiki.apache.org/lucene-java/BooleanQuerySyntax and in this blog post:
> http://robotlibrarian.billdueber.com/solr-and-boolean-operators/
> See also :
> http://lucene.472066.n3.nabble.com/re-LUCENE-167-and-Solr-default-handling-of-Boolean-operators-is-broken-tc3552321.html#a3552416
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]