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?
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?
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
implement?
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?
Its certainly possible to implement. Can you open an issue for this? I
plan to work more on facets to make them more easily pluggable and
extensible, and this can be one of the enhancements.
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
implement?
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?
Its certainly possible to implement. Can you open an issue for this? I
plan to work more on facets to make them more easily pluggable and
extensible, and this can be one of the enhancements.
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
implement?
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.