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

feat: add RareTermsAggregation #146

Merged
merged 2 commits into from
Jun 5, 2021
Merged

feat: add RareTermsAggregation #146

merged 2 commits into from
Jun 5, 2021

Conversation

xballoy
Copy link
Contributor

@xballoy xballoy commented May 21, 2021

This PR adds support for the Rare terms aggregation added in ES 7.3.

  • Add RareTermsAggregation implementation
  • Add RareTermsAggregation to documentation
  • Add RareTermsAggregation tests
  • Add typing

@xballoy xballoy marked this pull request as ready for review May 25, 2021 13:44
Copy link
Owner

@sudo-suhas sudo-suhas left a comment

Choose a reason for hiding this comment

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

LGTM apart from the minor comment.

*/
precision(precision) {
if (isNil(precision) || precision < 0.00001) {
throw new Error('`precision` cannot be smaller than 0.00001.');
Copy link
Owner

Choose a reason for hiding this comment

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

The error does not seem very appropriate when precision is nil.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@xballoy xballoy requested a review from sudo-suhas June 1, 2021 13:51
Copy link
Owner

@sudo-suhas sudo-suhas left a comment

Choose a reason for hiding this comment

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

LGTM

@sudo-suhas sudo-suhas merged commit 4fbf467 into sudo-suhas:master Jun 5, 2021
@sudo-suhas
Copy link
Owner

Changes have been released in elastic-builder@v2.16.0

Thanks, @xballoy for the PR and the great work!

@xballoy xballoy deleted the feature/add-rare-terms branch June 6, 2021 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants