Skip to content

SearchTemplateResponse is missing aggregations #109

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

Closed
tony-hizzle opened this issue Jan 14, 2022 · 2 comments
Closed

SearchTemplateResponse is missing aggregations #109

tony-hizzle opened this issue Jan 14, 2022 · 2 comments

Comments

@tony-hizzle
Copy link

I have search templates that add aggregations to the response, but SearchTemplateResponse does not include an aggregations field: Map<String, Aggregate> aggregations

        SearchTemplateRequest request = SearchTemplateRequest.of(r -> r
                .index("index_name")
                .id("search_template_name")
                .params(ImmutableMap.of("query_string", JsonData.of("mickey")))
        );

        SearchTemplateResponse<Map> response = elasticsearchClient.searchTemplate(request, Map.class);
@tony-hizzle
Copy link
Author

I guess this is a duplicate of #89

@swallez
Copy link
Member

swallez commented Jan 24, 2022

Indeed this is a duplicate of #89.

@swallez swallez closed this as completed Jan 24, 2022
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

No branches or pull requests

2 participants