Open navneet1v opened 4 days ago
Added null checks for fieldInfo in ExactSearcher to avoid NPE while running exact search for segments with no vector field
Ensured that in ExactSearcher class, if fieldInfo is null for a field no results are returned. This is similar to what we have to ANNSearch ref: https://github.com/opensearch-project/k-NN/blob/main/src/main/java/org/opensearch/knn/index/query/KNNWeight.java#L232-L236.
Resolves #2277
--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.
Please fix the CI
seems to be related to new dependency upgrades. Will check
@heemin32 , @jmazanec15 and @shatejas can you guys review this PR.
Description
Added null checks for fieldInfo in ExactSearcher to avoid NPE while running exact search for segments with no vector field
Ensured that in ExactSearcher class, if fieldInfo is null for a field no results are returned. This is similar to what we have to ANNSearch ref: https://github.com/opensearch-project/k-NN/blob/main/src/main/java/org/opensearch/knn/index/query/KNNWeight.java#L232-L236.
Related Issues
Resolves #2277
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.