Reputation: 1988
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?
Upvotes: 4
Views: 6326
Reputation: 4733
Check the latest release, it contains the top hits aggregation. This might be what you are looking for
Upvotes: 4