forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Vector merge policy for indices with vectors
Add a new VectorMergePolicy for indices with vector fields. This new merge policy is a copy of Lucene's `TieredMergePolicy` with some modifications to speed up merging of vector indexes: - Instead of merging segments of equal size, a merge is composed of the current largest segment with smallest segments -Instead of choosing a merge with the smallest skew (giving preference to merges of segments of same size), preference is given to a merge of biggest segment with smallest segments. These modifications were done to take advantage of optimization during merging that keeps the largest graph from merging segments and appends vectors from other merging segments to it.
- Loading branch information
1 parent
5d8e297
commit 9d5555b
Showing
6 changed files
with
1,131 additions
and
62 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
Oops, something went wrong.