-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Enable Point based optimization for custom comparators #8168
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
|
Yeah, looking at those. |
Signed-off-by: gashutos <gashutos@amazon.com>
...src/main/java/org/opensearch/index/fielddata/fieldcomparator/LongValuesComparatorSource.java
Outdated
Show resolved
Hide resolved
Gradle Check (Jenkins) Run Completed with:
|
@reta hardly people have context here on point based optimizations.... |
server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java
Outdated
Show resolved
Hide resolved
Will do, but you've got new comment, needs to be resolved (merge is blocked) |
…icFieldData.java Co-authored-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Chaitanya Gohel <104654647+gashutos@users.noreply.github.com>
Gradle Check (Jenkins) Run Completed with:
|
@gashutos sorry but needs rebase (to fix the Gradle check) |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Done :) |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-8168-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 87a833fbedfbcf9029d5e14e0597f8c5e8968086
# Push it to GitHub
git push --set-upstream origin backport/backport-8168-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
@gashutos sadly backport to |
…oject#8168) * Enable Point based optimization for custom comparators Signed-off-by: gashutos <gashutos@amazon.com> * Simplifying enableSkipping logic in IndexField Signed-off-by: gashutos <gashutos@amazon.com> * Empty commit Signed-off-by: gashutos <gashutos@amazon.com> * Update server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java Co-authored-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Chaitanya Gohel <104654647+gashutos@users.noreply.github.com> --------- Signed-off-by: gashutos <gashutos@amazon.com> Signed-off-by: Chaitanya Gohel <104654647+gashutos@users.noreply.github.com> Co-authored-by: Andrew Ross <andrross@amazon.com>
…oject#8168) * Enable Point based optimization for custom comparators Signed-off-by: gashutos <gashutos@amazon.com> * Simplifying enableSkipping logic in IndexField Signed-off-by: gashutos <gashutos@amazon.com> * Empty commit Signed-off-by: gashutos <gashutos@amazon.com> * Update server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java Co-authored-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Chaitanya Gohel <104654647+gashutos@users.noreply.github.com> --------- Signed-off-by: gashutos <gashutos@amazon.com> Signed-off-by: Chaitanya Gohel <104654647+gashutos@users.noreply.github.com> Co-authored-by: Andrew Ross <andrross@amazon.com>
…oject#8168) Signed-off-by: gashutos <gashutos@amazon.com>
…oject#8168) Signed-off-by: gashutos <gashutos@amazon.com>
…oject#8168) Signed-off-by: gashutos <gashutos@amazon.com>
…oject#8168) Signed-off-by: gashutos <gashutos@amazon.com>
…oject#8168) Signed-off-by: gashutos <gashutos@amazon.com>
…oject#8168) * Enable Point based optimization for custom comparators Signed-off-by: gashutos <gashutos@amazon.com> * Simplifying enableSkipping logic in IndexField Signed-off-by: gashutos <gashutos@amazon.com> * Empty commit Signed-off-by: gashutos <gashutos@amazon.com> * Update server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java Co-authored-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Chaitanya Gohel <104654647+gashutos@users.noreply.github.com> --------- Signed-off-by: gashutos <gashutos@amazon.com> Signed-off-by: Chaitanya Gohel <104654647+gashutos@users.noreply.github.com> Co-authored-by: Andrew Ross <andrross@amazon.com>
…oject#8168) * Enable Point based optimization for custom comparators Signed-off-by: gashutos <gashutos@amazon.com> * Simplifying enableSkipping logic in IndexField Signed-off-by: gashutos <gashutos@amazon.com> * Empty commit Signed-off-by: gashutos <gashutos@amazon.com> * Update server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java Co-authored-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Chaitanya Gohel <104654647+gashutos@users.noreply.github.com> --------- Signed-off-by: gashutos <gashutos@amazon.com> Signed-off-by: Chaitanya Gohel <104654647+gashutos@users.noreply.github.com> Co-authored-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
As a part of #6321 and #6424 , we enabled Lucene's numeric sort optimization which are based on BKD point values skipping logic.
We can enable this for our custom comparator as well. Which were disabled while upgrading to Lucene 9.1.0 in this PR 2487.
There is no harm adding this back, queries like below in nyc_taxis are showing
15x
improvement onscaled_float
numeric types.total_amount
is scaled_float.#8167 will be resolved with this.