Skip to content

Cherry pick #103172 to 26.6: Text index: store positions for a better phrase search - #108411

Merged
robot-ch-test-poll merged 55 commits into
backport/26.6/103172from
cherrypick/26.6/103172
Jun 24, 2026
Merged

robot-ch-test-poll merged 55 commits into
backport/26.6/103172from
cherrypick/26.6/103172

Conversation

@robot-ch-test-poll

Copy link
Copy Markdown
Contributor

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-pick locally.
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:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

ahmadov added 30 commits April 21, 2026 16:35
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.
@robot-ch-test-poll robot-ch-test-poll added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request labels Jun 24, 2026
@robot-ch-test-poll
robot-ch-test-poll merged commit 8d0155c into backport/26.6/103172 Jun 24, 2026
@robot-ch-test-poll
robot-ch-test-poll deleted the cherrypick/26.6/103172 branch June 24, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants