Is there a way to force a facet item to pop up in the facet terms returned
by elasticsearch even if it's below the X top results ? eg:
I have a facet called "geek terms" that has 50 terms.
I do a filter on the term 'foo', but 'foo' is only the 25th most popular
term, so it's not sent in my "geek terms" facet that has only 20 items.
Nevertheless, I would like to show the 'foo' term statistics to my user.
Is there a way to force the facet to return given terms ?
The only solution I can think of is two facets, where one of them uses a
regex of 'foo', that are then combined on the client side.
--
Ivan
On Tue, Jul 9, 2013 at 8:09 AM, Jérémie BORDIER ahfeel@gmail.com wrote:
Hi peeps,
Is there a way to force a facet item to pop up in the facet terms returned
by elasticsearch even if it's below the X top results ? eg:
I have a facet called "geek terms" that has 50 terms.
I do a filter on the term 'foo', but 'foo' is only the 25th most popular
term, so it's not sent in my "geek terms" facet that has only 20 items.
Nevertheless, I would like to show the 'foo' term statistics to my user.
Is there a way to force the facet to return given terms ?
maybe the regex option of the terms stats filter can help you, see
--Alex
On Tue, Jul 9, 2013 at 5:09 PM, Jérémie BORDIER ahfeel@gmail.com wrote:
Hi peeps,
Is there a way to force a facet item to pop up in the facet terms returned
by elasticsearch even if it's below the X top results ? eg:
I have a facet called "geek terms" that has 50 terms.
I do a filter on the term 'foo', but 'foo' is only the 25th most popular
term, so it's not sent in my "geek terms" facet that has only 20 items.
Nevertheless, I would like to show the 'foo' term statistics to my user.
Is there a way to force the facet to return given terms ?
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.