You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2017/08/10 09:19:00 UTC

[jira] [Updated] (LUCENE-7925) Deduplicate SHOULD and MUST clauses in BooleanQuery

     [ https://issues.apache.org/jira/browse/LUCENE-7925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrien Grand updated LUCENE-7925:
---------------------------------
    Attachment: LUCENE-7925.patch

Here is a patch. Boosts are summed up through a double like the scorer would do.

> Deduplicate SHOULD and MUST clauses in BooleanQuery
> ---------------------------------------------------
>
>                 Key: LUCENE-7925
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7925
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-7925.patch
>
>
> Now that coord factors are gone, we can always deduplicate MUST clauses and SHOULD clauses (when minimumNumberShouldMatch is 1) by summing up their boosts.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org