-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 sort optimization for all NumericTypes #6326
Comments
@nknize Do you happen to know why OpenSearch/ES chose to use a LONG for the SortField for the smaller types? I suspect I'm not the only one who would like to know so it might be helpful to capture that here. (Or link to anywhere else that might explain it). Thanks! |
Is your feature request related to a problem? Please describe.
Lucene provides inbuilt sort optimization (point based) for all numeric sort types. As per this PR we were able to enable sort optimization for below 4 types.
There are other types where we have widened our Types (i.e from SHORT to LONG). Code. So those types are still not optmized and taking time to return hits.
Describe the solution you'd like
Enable Lucene numeric sort optimization for all remaining types mentioned here.
Code
Describe alternatives you've considered
There is no alternative as of now.
Additional context
This will break existing indexed data, so we need to do POC and determine challenges to enable optimizations where SortField.Type is not matched with Point.Type.
The text was updated successfully, but these errors were encountered: