Skip to content

[DiskBBQ] Fix index sorting on flush (2nd attempt)#145076

Merged
iverase merged 3 commits intoelastic:mainfrom
iverase:indexSortflush
Mar 27, 2026
Merged

[DiskBBQ] Fix index sorting on flush (2nd attempt)#145076
iverase merged 3 commits intoelastic:mainfrom
iverase:indexSortflush

Conversation

@iverase
Copy link
Copy Markdown
Contributor

@iverase iverase commented Mar 27, 2026

After #144938, I was still seeing a strange behaviour when hitting restrictive filters. I improved the test for restrictive filters and I could reprodduce it. It seems the change was not enough so here is the next version which make test happy.

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @iverase, I've created a changelog YAML for you.

} else {
DocsWithFieldSet newDocsWithField = new DocsWithFieldSet();
final int[] ordMap = new int[fieldVectorsWriter.getDocsWithFieldSet().cardinality()]; // new ord to old ord
KnnVectorsWriter.mapOldOrdToNewOrd(fieldVectorsWriter.getDocsWithFieldSet(), sortMap, null, ordMap, newDocsWithField);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ah yeah! I forgot about this helper!

@iverase iverase added the auto-backport Automatically create backport pull requests when merged label Mar 27, 2026
@iverase iverase merged commit 6d5eb37 into elastic:main Mar 27, 2026
36 checks passed
@iverase iverase deleted the indexSortflush branch March 27, 2026 12:55
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💔 Backport failed

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 145076

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged backport pending >bug :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.2.8 v9.3.3 v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants