Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Oct 23, 2025

We currently se the same API method to compute centroids during flush and during merge. In order to explore improvements on how we compute centroids during merge (e.g reusing some of the existing centroids), this commit adds a new API method for calculating centroids during merging. They implementation currently fowards the request to the calcualtion of centroids during flush.

I moved the computation of the global centroid to CentroidAssignments as it feels it belongs there.

@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Oct 23, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

Copy link
Member

@benwtrent benwtrent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yessir, I agree with the split, we should have a "merge time" calculator.

@iverase iverase added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Oct 23, 2025
@elasticsearchmachine elasticsearchmachine merged commit 192ff7e into elastic:main Oct 23, 2025
34 checks passed
@iverase iverase deleted the calculateCentroidMerge branch October 23, 2025 15:54
fzowl pushed a commit to voyage-ai/elasticsearch that referenced this pull request Nov 3, 2025
…7039)

We currently se the same API method to compute centroids during flush
and during merge. In order to explore improvements on how we compute
centroids during merge (e.g reusing some of the existing centroids),
this commit adds a new API method for calculating centroids during
merging. They implementation currently fowards the request to the
calcualtion of centroids during flush.

I moved the computation of the global centroid to CentroidAssignments as
it feels it belongs there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >non-issue :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants