Re: ElasticSearch: restrict results but not facet counts

2014-05-14 Thread Felix Schwarz
Am 13.05.2014 11:37, schrieb David Pilato: > You need to add your second filter as a "post_filter": > (...) Thank you very much, that did it. (I noticed that just "filter" would work as well in my case). Felix -- You received this message because you are subscribed to the Google Groups "elast

Re: ElasticSearch: restrict results but not facet counts

2014-05-13 Thread David Pilato
Hey Felix, You need to add your second filter as a "post_filter": http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-post-filter.html#search-request-post-filter HTH --  David Pilato | Technical Advocate | Elasticsearch.com @dadoonet | @elasticsearchfr Le 13 m

ElasticSearch: restrict results but not facet counts

2014-05-13 Thread Felix Schwarz
I'm struggling writing an ElasticSearch query with facet counts. This is very likely a simple question but I'm confused by all the facet filters and filter facets. The query itself needs two conditions: - a condition which restricts the document set, excluded documents should not be used for