[
https://issues.apache.org/jira/browse/LUCENE-5784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Willnauer reassigned LUCENE-5784:
---------------------------------------
Assignee: Simon Willnauer
> CommonTermsQuery HighFreq MUST not applied if lowFreq terms
> -----------------------------------------------------------
>
> Key: LUCENE-5784
> URL: https://issues.apache.org/jira/browse/LUCENE-5784
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/query/scoring
> Affects Versions: 4.8.1
> Reporter: Clinton Gormley
> Assignee: Simon Willnauer
> Priority: Minor
> Attachments: common_terms.patch
>
>
> When a CommonTermsQuery has high and low frequency terms, the highFreq terms
> Boolean query is always added as a SHOULD clause, even if highFreqOccur is
> set to MUST:
> new CommonTermsQuery(Occur.MUST, Occur.MUST,0.1);
> My patch sets the top level Boolean query's minimum should match to 1 to
> ensure that the SHOULD clause must match. Not sure if this is the correct
> approach, or if it should just add the highFreq query as a MUST clause
> instead?
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]