Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Aug 22, 2025

We are using IndexInput#seek whenever we want to process a vector in a posting lists. This seems pretty wasteful now that we are not removing soar assignments so in many cases we are just processing all the vectors in a posting list. It makes more sense to skip the bytes instead, whenever we don't want to process a vector. I run it a few times and results suggest this is actually faster too.

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

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

Copy link
Contributor

@john-wagster john-wagster left a comment

Choose a reason for hiding this comment

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

lgtm

@iverase iverase merged commit 7f39b19 into elastic:main Aug 22, 2025
32 checks passed
@iverase iverase deleted the skipBytesPostingList branch August 22, 2025 14:10
pabloem pushed a commit to pabloem/elasticsearch that referenced this pull request Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants