Skip to content

Should DisjunctionScorer advance more lazily? [LUCENE-6815] #7873

@asfimport

Description

@asfimport

Today if you call DisjunctionScorer.advance(X), it will try to advance all sub scorers to X. However, if DisjunctionScorer is being intersected with another scorer (which is almost always the case as we use BooleanScorer for top-level disjunctions), we could stop as soon as we find one matching sub scorer, and only advance the remaining sub scorers when freq() or score() is called.


Migrated from LUCENE-6815 by Adrien Grand (@jpountz), 1 vote, resolved Dec 11 2015
Attachments: LUCENE-6815.patch (versions: 3)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions