Unfortunately, subqueries are not supported. What you can do is dump the 
results of your first query into an index. And then you can do a 
terms_stats facet on that dump to get your final results:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-terms-stats-facet.html

-- 
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/04770395-4c81-4d42-9566-df763a39fb0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to