You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2014/07/05 13:42:34 UTC

[jira] [Assigned] (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 ]

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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org