Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Introduce IndexSearcher#searchLeaf(LeafReaderContext, Weight, Collector) method #13619

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

javanna
Copy link
Contributor

@javanna javanna commented Jul 30, 2024

Backport of #13603

javanna added 2 commits July 30, 2024 17:23
…or) method (apache#13603)

There's a couple of places in the codebase where we extend `IndexSearcher` to customize
per leaf behaviour, and in order to do that, we need to override the entire search method
that loops through the leaves. A good example is `ScorerIndexSearcher`.

Adding a `searchLeaf` method that provides the per leaf behaviour makes those cases a little
easier to deal with.
@javanna javanna merged commit 539274f into apache:branch_9x Jul 30, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant