Is there a way of specifying the scope of an aggregation (if there is I 
cant seem to find it)?

I want to achieve the equivalent of a Facet "global" : true.

Do I need to use facets instead of aggregations in this case?

I am just doing term aggregations - to give the user a dropdown list to 
filter by, say, commodity - and provide choices like:
Aluminium (0)
Copper (110)
Gold (6)
Lead (243)
Zinc (0)

I want to do a global aggregation to get all the possible terms (ie all 
possible filter values).
I want to do a contextual (based on current user query) term aggregation to 
get the counts.

How do I do this with Aggregations?

Thanks

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/2ea2b66e-5274-4d04-a4b4-dabef399db13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to