Unfortunately, the terms_stats facet does not support scripting the terms
key. You can try aggregations (ES 1.0) or if you want to use term_stats
facet, you will need to introduce an extra field that is a combination of
product and campaign to your JSON documents.
The problem is that these aren't not the only one case which I want to
aggregating them that way is rather complicated.
So, there is a chance to do that in ES 1.0. I'm going to start its
installation.
Chers,
Raúl.
On Friday, February 7, 2014 2:41:22 PM UTC+1, Binh Ly wrote:
Raul,
Unfortunately, the terms_stats facet does not support scripting the terms
key. You can try aggregations (ES 1.0) or if you want to use term_stats
facet, you will need to introduce an extra field that is a combination of
product and campaign to your JSON documents.
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.