[
https://issues.apache.org/jira/browse/SOLR-6004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132057#comment-18132057
]
Nick Shanin commented on SOLR-6004:
-----------------------------------
>From code reading against apache/main b73f03976fa, OR, AND, NOT and TO are
>dropped from the clause list
>(solr/core/src/java/org/apache/solr/search/ExtendedDismaxQParser.java:313),
>and shingles are built from that filtered list
>(ExtendedDismaxQParser.java:636-641), so a shingle can span an OR, for example
>"cup mug". Is that still wanted? If not, a fix would stop shingles across
>operators.
🤖 AI-generated 🤖
> Phrase field queries should treat "OR" differently than "AND"
> -------------------------------------------------------------
>
> Key: SOLR-6004
> URL: https://issues.apache.org/jira/browse/SOLR-6004
> Project: Solr
> Issue Type: Bug
> Components: query parsers
> Affects Versions: 4.7, 4.7.1, 4.7.2
> Reporter: Manor Lev-Tov
> Priority: Major
>
> For ExtendedDismaxParser, using phrase fields with a query that contains an
> "OR" conjunction does not produce the expected shingles.
> Consider the following query:
> q=coffee+AND+(cup+OR+mug^0.5)
> With a pf2, the expected behavior is for the generated shingles to be "coffee
> cup" and "coffee mug^0.5". Instead, the generated shingles are "coffee cup"
> and "cup mug^0.5"
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]