That's only for category purposes (not analyzed text field) so I think
it'd be usually less than 10 terms.
I'd like to implement an object browser with facet-based filtering.
When somebody restricts search to objects of one category, then other
categories should be returned also for him to change his selection.
Additionally it would be perfect to have a possibility of defining two
types of filters:
strong filters - one kind of filter that always restricts browsed
objects (user isn't allowed to see these objects at all)
weak filters - second kind of filter that limits browsed objects (user
selects a filter to limit shown objects).
Then facet values should be calculated that way:
- documents in index are restricted by strong filters
- check what terms exists in those set of documents - they will be
facet values (terms) to return
- restrict documents by weak filters
- calculate document counts for terms from 2. and return all those
values (even zeros)
What do you think about that functionality? Is it possible to
On Dec 16, 8:18 pm, Shay Banon shay.ba...@elasticsearch.com wrote:
There isn't an option to do this today. How many terms are we talking about
per field (in general)?
2010/12/15 Wojciech Durczyński wojciech.durczyn...@comarch.com
I have following usecase:
I'd like to create TermsFacet which will return all possible terms
(just like global facet), but numbers should be taken from current
query/filtering (just like in non-global facet).
In other words: my facet should work just like usual non-global
TermsFacet, but in results there should be always all possible terms
for particular field (probably most of them with count 0).
How to achieve this functionality? Maybe it should be included in ES
just like global facets are?