-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Use ValueFetcher when loading text snippets to highlight (#63572) #65441
Conversation
HighlighterUtils.loadFieldValues() loads values directly from the source, and then callers have to deal with filtering out values that would have been removed by an ignore_above filter on keyword fields. Instead, we can use the ValueFetcher for the relevant field, which handles all this logic for us. Closes elastic#59931.
cc @jtibshirani - I've added a new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some suggestions on the migration notes.
|
||
See also <<release-highlights>> and <<es-release-notes>>. | ||
|
||
// * <<breaking_710_blah_changes>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking_710_blah_changes -> breaking_711_blah_changes
//tag::notable-breaking-changes[] | ||
|
||
[discrete] | ||
[[breaking_710_search_changes]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking_710_search_changes -> breaking_711_search_changes
=== Search changes | ||
|
||
[[highlight-normalization]] | ||
.Keyword fields with a custom normalizer will use the normalized form when highlighting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we mention the change to copy_to
as well? This is technically a breaking behavioral change, and it's nice to alert users about it because they could be able to stopping setting store: true
on some fields.
I've fixed the 710->711 substitutions that I'd missed earlier. I'm don't think this is the right place to call out the |
Sounds good to me! |
@elasticmachine update branch |
HighlighterUtils.loadFieldValues() loads values directly from the source, and
then callers have to deal with filtering out values that would have been removed
by an ignore_above filter on keyword fields. Instead, we can use the
ValueFetcher for the relevant field, which handles all this logic for us.
Closes #59931.