-
Notifications
You must be signed in to change notification settings - Fork 689
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
MB-62230 - Pre-Filtering Support for kNN #2063
Conversation
metonymic-smokey
commented
Aug 12, 2024
•
edited
Loading
edited
- Extended KNN queries to support filter queries if specified.
- Created a new collector, eligible collector, and a new document match handler for the filter queries as part of kNN.
- Run the filter queries prior to each kNN query and pass the results when constructing the kNN queries.
- Added unit tests for filtered kNN cases.
- Updated the documentation with an example of a filtered kNN request.
9cc3688
to
c73c827
Compare
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.
Made one pass, will require a few more after changes to API signatures.
2904fac
to
0b90c1e
Compare
0b90c1e
to
0c6dcf4
Compare
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.
@metonymic-smokey no force pushing here please, checkout latest from branch pre-filter
before pushing commits up. There're unit tests failing that needs looking into -
--- FAIL: TestSimilaritySearchPartitionedIndex (0.31s)
search_knn_test.go:876: test case #0 failed: 0 hits returned
--- FAIL: TestSimilaritySearchMultipleSegments (0.27s)
search_knn_test.go:876: test case #0 failed: 0 hits returned