-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-59102: Merging kNN hits from a distributed index with exact search…
… hits (#1936) - Reverts commit #1910, which was an earlier attempt to address this issue. - Implements the PreSearch Construct in Bleve alias search, enabling a preliminary query to collect metadata from all alias indexes before executing the main search query in MultiSearch. PreSearch gathers KNN results from all alias indexes, selecting the top K results. This facilitates the main Bleve Query to operate within the context of documents that matched the KNN query, ensuring seamless functionality of existing Bleve constructs such as Faceting, Sorting, Pagination, SearchAfter, and SearchBefore. - Introduces the KNN Collector construct to merge and obtain accurate Top K results from multiple Zap Segments' KNN results. - Enhances KNN Unit Tests for greater generality. - Addresses an issue where errors generated within the Top N Document handler were being discarded. - Resolves an issue where document matches failing to meet the SearchAfter clause weren't being returned to the pool.
- Loading branch information
1 parent
2962697
commit 138fec5
Showing
19 changed files
with
1,254 additions
and
1,130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.