Skip to content

Implement matches() on SourceConfirmedTextQuery #100252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

romseygeek
Copy link
Contributor

@romseygeek romseygeek commented Oct 4, 2023

match_only_text does not currently support highlighting via the matches
option of the default highlighter. This commit implements matches on the
backing query for this field, and also fixes a bug where the field type's
value fetcher could hold on to the wrong reference for a source lookup,
causing threading errors.

@romseygeek romseygeek requested a review from cbuescher October 4, 2023 09:09
@romseygeek romseygeek self-assigned this Oct 4, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Oct 4, 2023
@elasticsearchmachine
Copy link
Collaborator

Hi @romseygeek, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the backport of #100134

Verified

This commit was signed with the committer’s verified signature.
codetheweb Max Isom
`match_only_text` does not currently support highlighting via the matches
option of the default highlighter. This commit implements matches on the
backing query for this field, and also fixes a bug where the field type's
value fetcher could hold on to the wrong reference for a source lookup,
causing threading errors.
@romseygeek romseygeek force-pushed the 8x/highlight/match-only-text-bug branch from c490c50 to 5d0c8a3 Compare October 4, 2023 10:12
@romseygeek romseygeek changed the title Fix cross-thread source loader bug in MatchOnlyTextFieldMapper Implement matches() on SourceConfirmedTextQuery Oct 4, 2023

Verified

This commit was signed with the committer’s verified signature.
codetheweb Max Isom
@elasticsearchmachine
Copy link
Collaborator

Hi @romseygeek, I've created a changelog YAML for you.

@romseygeek
Copy link
Contributor Author

Have updated to be a straight backport of #100134

@romseygeek romseygeek merged commit 5150040 into elastic:8.10 Oct 4, 2023
@romseygeek romseygeek deleted the 8x/highlight/match-only-text-bug branch October 4, 2023 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search Relevance/Highlighting How a query matched a document Team:Search Meta label for search team v8.10.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants