Have a look at filters, specifically the terms filter. They execute very fast and are cached too.
http://www.elasticsearch.org/blog/all-about-elasticsearch-filter-bitsets/ http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html On Friday, February 7, 2014 5:57:15 AM UTC-5, [email protected] wrote: > > I was worried that ES couldn’t handle these huge queries (potentially > hundreds of tags) but apparently I was underestimating ES. > > 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/c336837b-eb9c-4845-97dd-331655817dad%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
