Skip to content

Conversation

parkertimmins
Copy link
Contributor

@parkertimmins parkertimmins commented Aug 27, 2025

Add an index_options field to patterned_text type. Currently, only supports docs and positions. When docs is enabled, positions are not stored, and queries fall back to a source confirmed query, like match_only_text. With positions enabled, phrase queries are efficient as the source does not need to be checked. Defaults to docs.

Fixes #128935

@parkertimmins parkertimmins added >non-issue :StorageEngine/Mapping The storage related side of mappings labels Aug 27, 2025
@parkertimmins parkertimmins marked this pull request as ready for review August 27, 2025 20:12
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

Copy link
Contributor

@kkrik-es kkrik-es left a comment

Choose a reason for hiding this comment

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

Looks good, modulo the default mode.

@parkertimmins parkertimmins requested a review from kkrik-es August 28, 2025 15:29
Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

LGTM 👍 , Let's add a variant of the patterned text benchmark with positions as well?

@parkertimmins parkertimmins merged commit ea95e9e into elastic:main Aug 29, 2025
33 checks passed
JeremyDahlgren pushed a commit to JeremyDahlgren/elasticsearch that referenced this pull request Aug 29, 2025
Add an index_options field to patterned_text type. Currently, only supports docs and positions. When docs is enabled, positions are not stored, and queries fall back to a source confirmed query, like match_only_text. With positions enabled, phrase queries are efficient as the source does not need to be checked. Defaults to docs.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add phrase queries to pattern-text field

4 participants