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

Removing legacy Aggregation API. #8329

Merged
merged 10 commits into from
Jun 15, 2020
Merged

Conversation

dennisoelkers
Copy link
Member

Description

Motivation and Context

As previously announced (in be12bfe),
the legacy aggregation API is removed in 4.0. This PR is taking all
the 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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

Copy link
Contributor

@alex-konn alex-konn left a 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 {
Copy link
Contributor

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.

Copy link
Member Author

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) {
Copy link
Contributor

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 enums TermsStatsOrder, and DateHistogramInterval can be deleted too.

Copy link
Member Author

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;
}

Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

✔️

@alex-konn alex-konn merged commit 82c8e84 into master Jun 15, 2020
@alex-konn alex-konn deleted the remove-legacy-aggregation-api branch June 15, 2020 10:12
@dennisoelkers dennisoelkers added this to the 4.0.0 milestone Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants