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

How to get aggregation result in searchTemplate [7.16.2] #89

Closed
forachange opened this issue Dec 31, 2021 · 1 comment
Closed

How to get aggregation result in searchTemplate [7.16.2] #89

forachange opened this issue Dec 31, 2021 · 1 comment
Labels
Area: Specification Related to the API spec used to generate client code

Comments

@forachange
Copy link

7.16,Elasticsearch Java API Client

SearchTemplateResponse<Object> response = ElasticSearchClient.searchTemplate(request, Object.class);

The response just have the hits property to get the search result, but how to get aggregation result ?

@swallez
Copy link
Member

swallez commented Jan 25, 2022

Thanks for reporting this issue. The upstream API specification has been fixed in elastic/elasticsearch-specification#1335

The next pass of code generation will fix the issue.

swallez added a commit that referenced this issue Jan 25, 2022
swallez added a commit that referenced this issue Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Specification Related to the API spec used to generate client code
Projects
None yet
Development

No branches or pull requests

2 participants