Non-tokenized terms facet?

I'm trying to use the terms facet to return facets that reflect the entire
string stored in a field. For example:

"facet_field": "FOO BAR"
"facet_field": "BAR BAR"
"facet_field": "BAR BAR"

is currently returning:
"FOO": 1
"BAR": 3

but I would like it to return:
"FOO BAR" : 1
"BAR BAR" : 2

Could someone point in the right direction? Thanks!

--
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.

Change mapping for field facet_field to be not analyzed.

HTH

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 28 avr. 2013 à 23:00, kakaner kakaner@gmail.com a écrit :

I'm trying to use the terms facet to return facets that reflect the entire string stored in a field. For example:

"facet_field": "FOO BAR"
"facet_field": "BAR BAR"
"facet_field": "BAR BAR"

is currently returning:
"FOO": 1
"BAR": 3

but I would like it to return:
"FOO BAR" : 1
"BAR BAR" : 2

Could someone point in the right direction? Thanks!

--
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.