Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Named queries have a performance bug when they are used with expensive queries that need to perform a lot of work up-front like fuzzy or range queries (including with points). The reason is that they currently re-create the weight and scorer for every hit. Instead we should create weights exactly once and use a single Scorer for all documents that are on the same segment.
- Loading branch information
Showing
1 changed file
with
53 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters