4

Have a requirement to prepare search result (from server) in a way for UI to display something like shown on this page. basically a database equivalent is group by queries including average aggregation for one or more of the sub-groupings.

Apparently it's clear that Elastic Search doesn't have support for returning documents with aggregation feature which was confirmed by this and this post.

while comparing elastic search with Solr one of the reasons to go with Elastic Search was it's advanced aggregation features, including nested aggregations and variety of other rich aggregations (including min,max,avg,sum,percentile etc). Given the requirement on hand what's the best server side workaround for achieve results(documents) in each aggregation?

1 Answer 1

4

Check the latest release, it contains the top hits aggregation. This might be what you are looking for

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-hits-aggregation.html

Sign up to request clarification or add additional context in comments.

1 Comment

:- since I want all the documents for each bucket should size attribute not be put in there when using top-hits-aggregation?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.