Drill down and actually retrieving documents using aggregations


(knacktus) #1

Hi all,

I'm not sure if I've got the correct understanding about using aggregations:

With bucket aggregations I can give the user hints about what values for a
given field are available and how many documents match the value. So far,
so good. But then we need to work with the documents of the buckets. My
understanding is that to retrieve the documents of the buckets I would have
to perform another query, wouldn't I? For nested buckets: Would I need to
assemble a complex query based on the results of the aggregation?

Or do I miss some obvious technique how to handle the documents of the
buckets? Like, get the id field?

Thanks,

Jan

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a682e538-06fa-485c-8926-5687a33714ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2