-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Postings highlighter deprecation #25073
Conversation
|
||
private static final String CACHE_KEY = "highlight-postings"; | ||
|
||
@Override | ||
public HighlightField highlight(HighlighterContext highlighterContext) { | ||
|
||
deprecationLogger.deprecated("[postings] highlighter is deprecated, please use [unified] instead"); |
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.
this way we will issue a deprecation warning for each hit, each field. Should we try to do it for each document at least? or maybe we can do it for each request, that would be even better.
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.
Thanks, I tried to limit to one per request in this change:
31ee145
Can you take another look ?
@@ -60,8 +60,13 @@ This is repeated for every field and every document that needs highlighting. If | |||
[[postings-highlighter]] | |||
==== Postings highlighter | |||
|
|||
deprecated[5.5.0,This highlighter type is deprecated and will be removed. Please use the `unified` highlighter instead. ] |
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.
removed in 6.0.
31ee145
to
9b6f1bb
Compare
This change adds a deprecation warning for removal in 6.0. Relates elastic#25028
9c4eb4d
to
89822b8
Compare
The
postings
highlighter is deprecated in Lucene and will be replaced by theunified
.This change adds a deprecation warning for removal in 6.0.
Relates #25028