Skip to content

Only valid collectors should be taken into account when computing the scoreMode in MultiCollector #14778

Closed
@kkewwei

Description

@kkewwei

Description

During the retrieval of collectors via collector.getLeafCollector(context), some invocations may throw a CollectionTerminatedException-indicating this leaf collector does not need this segment. However, when computing scoreMode(), we still factor in collectors that throw such exceptions, which seems logically inconsistent.

public LeafCollector getLeafCollector(LeafReaderContext context) throws IOException {

I'm pleasure to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions