Skip to content

Should MAXSCOREBulkScorer sometimes apply filters after essential clauses. #15519

@jpountz

Description

@jpountz

Currently, MAXSCOREBulkScorer always applies filters in parallel with essential clauses (by intersecting the filter with a heap containing essential clauses in a leap frog fashion).

When the sum of costs of essential clauses is less than the cost of the filter, it would likely be more efficient to "post filter" hits of essential clauses, ie. pull hits of essential clauses into a DocAndScoreBuffer and then remove hits from this buffer that don't match the filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions