# Non-tokenized terms facet?

**URL:** <https://discuss.elastic.co/t/non-tokenized-terms-facet/11722>\
**Category:** Elasticsearch\
**Created:** [April 28, 2013, 9:00pm UTC](https://discuss.elastic.co/t/non-tokenized-terms-facet/11722 "2013-04-28T21:00:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kakaner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kakaner/32/1892_2.png) [@kakaner](https://discuss.elastic.co/u/kakaner)\
**Post date:** [April 28, 2013, 9:00pm UTC](https://discuss.elastic.co/t/non-tokenized-terms-facet/11722/1 "2013-04-28T21:00:38Z")

</div>

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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 28, 2013, 9:39pm UTC](https://discuss.elastic.co/t/non-tokenized-terms-facet/11722/2 "2013-04-28T21:39:05Z")

</div>

Change mapping for field facet\_field to be not analyzed.

HTH

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

Le 28 avr. 2013 à 23:00, kakaner [kakaner@gmail.com](mailto: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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:39am UTC](https://discuss.elastic.co/t/non-tokenized-terms-facet/11722/3 "2017-07-06T02:39:17Z")

</div>


