Repository navigation
Cherry pick #103172 to 26.6: Text index: store positions for a better phrase search - #108411
Merged
robot-ch-test-poll merged 55 commits intoJun 24, 2026
Merged
Conversation
Tests for partially materialized text index with and without positions.
The 64 bit Roarish entry has limitation of 1M tokens per document due to its achitecture. With 96 bit Roarish entry, we can avoid this limit. Alternatively, we could use a 128 bit Roarish entry which would be more efficient for SIMD processing, however it would cost the storage ~2x.
Decode positions into a struct-of-arrays PositionList (doc/group/bitmap lanes) and run phrase search over it. The matching doc-ids are a flat posting list, so cache them in the text-index postings cache under a Phrase key: computed once per (part, query) and shared across the part's reader threads via getOrSet, instead of every reader re-decoding the full position lists.
Also, rename `__experimental_positions` to `positions` since it's guarded by an experimental settings.
Text index: store positions for a better phrase search
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original pull-request #103172
Do not merge this PR manually
This pull-request is a first step of an automated backporting.
It contains changes similar to calling
git cherry-picklocally.If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.
The check results does not matter at this step - you can safely ignore them.
Troubleshooting
If the conflicts were resolved in a wrong way
If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:
pr-cherrypicklabel from the PRYou also need to check the Original pull-request for
pr-backports-createdlabel, and delete if it's presented thereThe PR source
The PR is created in the CI job