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

[Backport 2.x] Enable numeric sort optimisation for few numerical sort types #6330

Merged
merged 1 commit into from
Feb 15, 2023

Commits on Feb 15, 2023

  1. 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>
    3 people committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    1578cab View commit details
    Browse the repository at this point in the history