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.
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.
On Wed, Jun 11, 2014 at 12:02 PM, mooky <nick.mi...@gmail.com
<javascript:>> wrote:
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.