Force facet item to show up

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 ?

Thanks !

Jérémie

--
Jérémie 'ahFeel' BORDIER

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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 ?

Thanks !

Jérémie

--
Jérémie 'ahFeel' BORDIER

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

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 ?

Thanks !

Jérémie

--
Jérémie 'ahFeel' BORDIER

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.