lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-6850) BooleanWeight should not use BS1 when there is a single non-null clause
Date Tue, 20 Oct 2015 19:12:27 GMT

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

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

Here is a patch. BooleanWeight.bulkScorer now has the same optimization as BooleanWeight.scorer
in the case that only one of the optional clauses creates a non-null scorer.

> BooleanWeight should not use BS1 when there is a single non-null clause
> -----------------------------------------------------------------------
>
>                 Key: LUCENE-6850
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6850
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-6850.patch
>
>
> When a disjunction has a single non-null scorer, we still use BS1 for bulk-scoring, which
first collects matches into a bit set and then calls the collector. This is inefficient: we
should just call the inner bulk scorer directly and wrap the scorer to apply the coord factor
(like BooleanTopLevelScorers.BoostedScorer does).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message