-
Notifications
You must be signed in to change notification settings - Fork 125
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
Update knn index default to always do approximate search in test #2332
base: main
Are you sure you want to change the base?
Update knn index default to always do approximate search in test #2332
Conversation
cf1deca
to
5701675
Compare
There might be test cases which use custom setting instead of default setting. We need to update those cases as well. |
like what? Can you share the test that you are referring to? |
Signed-off-by: Vijayan Balasubramanian <[email protected]>
Signed-off-by: Vijayan Balasubramanian <[email protected]>
850ddba
to
691810a
Compare
Signed-off-by: Vijayan Balasubramanian <[email protected]>
Settings settings = Settings.builder() | ||
.put("index.knn", true) | ||
.put(KNNSettings.KNN_ALGO_PARAM_EF_SEARCH, 512) | ||
.put(KNNSettings.INDEX_KNN_ADVANCED_APPROXIMATE_THRESHOLD, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for cases like this I think we should just move the code to use getDefaultIndexSettings
so that in future we don't need to make the changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me. Just 1 minor comment
Description
Update knn index default to always do approximate search in test cases
Related Issues
Resolves #2329
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.