Re: Facted navigation with totals, drilling down

2014-09-08 Thread mooky
Not being too sure of the essence of your question let me fire some random info at you :) 1) If you use a query (rather than filter) then the aggregation will reflect the totals for that query. ie the query is global. 2) If you want to do an aggregation that is independent of that query, then

Re: Facted navigation with totals, drilling down

2014-09-08 Thread vineeth mohan
Hello Lee , Post filter might be what you are looking for. Post filters are only applied once aggregation is done - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-post-filter.html#search-request-post-filter Hence you can do the terms aggregation on _type

Facted navigation with totals, drilling down

2014-09-07 Thread Lee Gee
I have two 'types' in an index, or two indices of different types (I'd prefer the latter but can live with the former). I'm running an aggregation by type to implement what my UX people refer to as faceted search — which makes Googling for ES help quite tricky. UX would like to filter by

Re: Facted navigation with totals, drilling down

2014-09-07 Thread vineeth mohan
Hello Lee , For multiple search queries in a single call , you can use _msearch - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-multi-search.html Thanks Vineeth On Sun, Sep 7, 2014 at 6:27 PM, Lee Gee lee...@gmail.com wrote: I have two 'types' in an