-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Removing legacy Aggregation API. #8329
Conversation
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.
Sweet! I only added suggestions for a few additional removals.
@@ -61,12 +45,9 @@ | |||
|
|||
public class SearchesAdapterES6 implements SearchesAdapter { |
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.
The public method createTermsBuilder
and the constant AGG_TERMS
can be deleted too.
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.
✔️
@@ -196,57 +191,6 @@ public SearchResult search(SearchesConfig config) { | |||
return result; | |||
} | |||
|
|||
public TermsResult terms(String field, List<String> stackedFields, int size, String query, String filter, TimeRange range, Sorting.Direction sorting) { |
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.
The constant STACKED_TERMS_AGG_SEPARATOR
, and the enum
s TermsStatsOrder
, and DateHistogramInterval
can be deleted too.
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.
✔️
@@ -79,13 +70,6 @@ public SearchResource(Searches searches, | |||
this.decoratorProcessor = decoratorProcessor; | |||
} | |||
|
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.
The protected method splitStackedFields
can be deleted too.
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.
✔️
6edd509
to
15945ce
Compare
Description
Motivation and Context
As previously announced (in be12bfe),
the legacy aggregation API is removed in
4.0
. This PR is taking allthe required steps and prunes related classes and files.
For further details, please see #8323.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: