Skip to content

TopFieldCollector mistakenly assumes that all leaves share the same index sort #14399

Open
@jpountz

Description

@jpountz

TopFieldCollector caches whether the search sort is a prefix of the index sort across leaves. While IndexWriter enforces that the whole index has the same index sort, it is possible to create a MultiReader across several indexes which have different index sorts, so this cache is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions