You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Clinton Gormley (JIRA)" <ji...@apache.org> on 2014/07/07 17:10:34 UTC
[jira] [Closed] (LUCENE-5784) CommonTermsQuery HighFreq MUST not
applied if lowFreq terms
[ https://issues.apache.org/jira/browse/LUCENE-5784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clinton Gormley closed LUCENE-5784.
-----------------------------------
Resolution: Not a Problem
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org