Skip to content
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

Merged
merged 5 commits into from
Jun 9, 2017

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Jun 6, 2017

The postings highlighter is deprecated in Lucene and will be replaced by the unified.
This change adds a deprecation warning for removal in 6.0.

Relates #25028


private static final String CACHE_KEY = "highlight-postings";

@Override
public HighlightField highlight(HighlighterContext highlighterContext) {

deprecationLogger.deprecated("[postings] highlighter is deprecated, please use [unified] instead");
Copy link
Member

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.

Copy link
Contributor Author

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. ]
Copy link
Member

Choose a reason for hiding this comment

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

removed in 6.0.

@jimczi jimczi force-pushed the postings_highlighter_deprecation branch from 31ee145 to 9b6f1bb Compare June 6, 2017 18:37
@jimczi jimczi added v5.6.0 and removed v5.5.0 labels Jun 7, 2017
@jimczi jimczi force-pushed the postings_highlighter_deprecation branch from 9c4eb4d to 89822b8 Compare June 9, 2017 11:08
@jimczi jimczi removed the review label Jun 9, 2017
@jimczi jimczi merged commit 1ecb1c5 into elastic:5.x Jun 9, 2017
@jimczi jimczi deleted the postings_highlighter_deprecation branch June 9, 2017 11:45
@jimczi
Copy link
Contributor Author

jimczi commented Jun 9, 2017

Thanks @nik9000 and @javanna

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants