Skip to content

Dedicated merge policy for vectors - sandbox - #16655

Draft
costin wants to merge 1 commit into
apache:mainfrom
costin:lucene/proactive-clean-merge
Draft

costin wants to merge 1 commit into
apache:mainfrom
costin:lucene/proactive-clean-merge

Conversation

@costin

@costin costin commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

The current merge policy was designed for documents, preferring merging of segments with deletes. For vectors, combining segments with no deletes is preferable since it preserves the eligibility for join-set merge path instead of doing a full rebuild.

Hence this PR which extends the merge policy to allow different strategies to be used based when picking up the segments to merge.

Extend the merge policy to allow different strategies to
be used based when picking up the segments to merge.

Force-pick 0-delete same-tier merges before TMP, but only
when the index is mixed and segments sit above the floor.
Append-only workloads bypass to the inner policy unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant