-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable numeric sort optimisation for few numerical sort types (#6321)
This commit restores the sort optimization to use BKD to skip non-competitive docs for numeric types whose BYTES size match between the BKD leaf and doc values encoding. For now this is only LONG, DOUBLE, DATE, and DATE_NANOSECONDS as the remaining NumericTypes use 64bit docvalue encoding while the BKD uses smaller byte encoded space. This also updates the QueryPhase to remove the long time unnecessary in order doc id check and minDoc boolean query for skipping non-competitive docs that is handled by all Lucene 7.0+ sorted indexes. Existing tests are updated. Signed-off-by: Nicholas Walter Knize <nknize@apache.org> Signed-off-by: gashutos <gashutos@amazon.com> Co-authored-by: Nicholas Walter Knize <nknize@apache.org> Co-authored-by: Chaitanya Gohel <gashutos@amazon.com> (cherry picked from commit 6bb9e3e) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
cb42bb2
commit 1578cab
Showing
7 changed files
with
123 additions
and
65 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
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
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
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
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
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
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