Facet filter confusion


(Greg) #1

Hi all

Apologies for another newbie question.

What is the difference between 'filter' as described here[1] and
'facet_filter' as described here[2]?

Many thanks
Greg

[1] http://www.elasticsearch.org/guide/reference/api/search/facets/filter-facet.html
[2] http://www.elasticsearch.org/guide/reference/api/search/facets/
('Filter' section at the bottom of the page)


(Shay Banon) #2

The filter facet type ([1]) is simply a facet type, that returns a count of the docs matching the filter. The filter_facet [2] is a generic element that can be added to any facet to further filter the docs it will execute on.
On Saturday, May 14, 2011 at 12:07 AM, Greg wrote:

Hi all

Apologies for another newbie question.

What is the difference between 'filter' as described here[1] and
'facet_filter' as described here[2]?

Many thanks
Greg

[1] http://www.elasticsearch.org/guide/reference/api/search/facets/filter-facet.html
[2] http://www.elasticsearch.org/guide/reference/api/search/facets/
('Filter' section at the bottom of the page)


(Greg) #3

That makes perfect sense. Thanks Shay!

Greg


(system) #4