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

Fix parsing RareTerms aggregation response failed in RestHighLevelClient #64454

Merged
merged 3 commits into from
Nov 16, 2020

Conversation

gaobinlong
Copy link
Contributor

Relates to #63025.

The main changes are:

  1. Add LongRareTerms and StringRareTerms to the DefaultNamedXContents, ensure that the response of RareTerms aggregation can be parsed correctly.
  2. Add testSearchWithRareTermsAgg method to test the response of RareTerms aggregation can be parsed correctly.
  3. Add some test code to ensure the AggregationsTests can execute successfully.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Java High Level REST Client)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Nov 3, 2020
@jakelandis jakelandis requested a review from swallez November 5, 2020 14:39
@swallez
Copy link
Member

swallez commented Nov 9, 2020

Thanks for your contribution @gaobinlong. Overall it looks pretty good.

@swallez
Copy link
Member

swallez commented Nov 9, 2020

Jenkins test this please

@gaobinlong
Copy link
Contributor Author

@swallez, some test failures here, I have merged the master branch into this branch, can you help to trigger the test again?

@swallez
Copy link
Member

swallez commented Nov 10, 2020

Jenkins test this please

@gaobinlong
Copy link
Contributor Author

gaobinlong commented Nov 11, 2020

@jakelandis
Copy link
Contributor

@elasticmachine update branch

@jakelandis
Copy link
Contributor

@elasticmachine ok to test

Copy link
Member

@swallez swallez left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @gaobinlong!

@swallez swallez merged commit e4a90d5 into elastic:master Nov 16, 2020
swallez pushed a commit to swallez/elasticsearch that referenced this pull request Nov 16, 2020
…ent (elastic#64454)

- Add LongRareTerms and StringRareTerms to the DefaultNamedXContents,
  ensure that the response of RareTerms aggregation can be parsed
  correctly.
- Add testSearchWithRareTermsAgg method to test the response of
  RareTerms aggregation can be parsed correctly.
- Add some test code to ensure the AggregationsTests can execute
  successfully.
swallez added a commit that referenced this pull request Nov 17, 2020
…ent (#65103)

Backport of #64454

- Add LongRareTerms and StringRareTerms to the DefaultNamedXContents,
  ensure that the response of RareTerms aggregation can be parsed
  correctly.
- Add testSearchWithRareTermsAgg method to test the response of
  RareTerms aggregation can be parsed correctly.
- Add some test code to ensure the AggregationsTests can execute
  successfully.

Co-authored-by: bellengao <gbl_long@163.com>
swallez added a commit to swallez/elasticsearch that referenced this pull request Nov 17, 2020
…ent (elastic#65103)

Backport of elastic#64454

- Add LongRareTerms and StringRareTerms to the DefaultNamedXContents,
  ensure that the response of RareTerms aggregation can be parsed
  correctly.
- Add testSearchWithRareTermsAgg method to test the response of
  RareTerms aggregation can be parsed correctly.
- Add some test code to ensure the AggregationsTests can execute
  successfully.

Co-authored-by: bellengao <gbl_long@163.com>
swallez added a commit that referenced this pull request Nov 17, 2020
…5144)

Backport of #64454

- Add LongRareTerms and StringRareTerms to the DefaultNamedXContents,
  ensure that the response of RareTerms aggregation can be parsed
  correctly.
- Add testSearchWithRareTermsAgg method to test the response of
  RareTerms aggregation can be parsed correctly.
- Add some test code to ensure the AggregationsTests can execute
  successfully.

Co-authored-by: bellengao <gbl_long@163.com>
@swallez
Copy link
Member

swallez commented Nov 17, 2020

Backported to 7.x and 7.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Data Management Meta label for data/management team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants