The number of categories is finite and relatively low count. As you are 
suggesting, querying for all combinations is an option as well as 
precomputing. I wanted to see if there was a way to do it efficiently at 
query time. 

Thanks,
Colin

On Wednesday, February 12, 2014 8:36:44 AM UTC-5, Binh Ly wrote:
>
> I can't think of a way this can be done at the moment (unless of course 
> the categories are finite and you can build a massive query using 
> combinations of them). However, you can always precompute the distinct 
> category count per author prior to indexing and then include it as an extra 
> field in the document and then filter it using say a range filter.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/ed343c60-c04a-4f09-b3b7-124d8f9c2f26%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to