Skip to content

Conversation

@parkertimmins
Copy link
Contributor

@parkertimmins parkertimmins commented Aug 12, 2025

Add a test that verifies that patterned_text and match_only_text fields behave the same. The test create random documents contains a patterned_text field and a match_only_text field, with the same value. Then it generates random phrase, match, and term queries from the field values and queries the index. It then verifies that the same set of ids is returns by the patterned_text field queries as by the match_only_text field queries.

Fixes #131322

@elasticsearchmachine
Copy link
Collaborator

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

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

@parkertimmins parkertimmins merged commit 8278266 into elastic:main Aug 15, 2025
33 checks passed
javanna pushed a commit to javanna/elasticsearch that referenced this pull request Aug 18, 2025
…roduce equal results (elastic#132749)

Add a test that verifies that patterned_text and match_only_text fields behave the same. The test create random documents contains a patterned_text field and a match_only_text field, with the same value. Then it generates random phrase, match, and term queries from the field values and queries the index. It then verifies that the same set of ids is returns by the patterned_text field queries as by the match_only_text field queries.
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.

Randomized testing against match_only_text

3 participants