# Unique Count with Tokenizer

**URL:** <https://discuss.elastic.co/t/unique-count-with-tokenizer/56316>\
**Category:** Kibana\
**Created:** [July 25, 2016, 4:07pm UTC](https://discuss.elastic.co/t/unique-count-with-tokenizer/56316 "2016-07-25T16:07:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergio\_Pavez](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sergio\_Pavez](https://discuss.elastic.co/u/Sergio_Pavez)\
**Post date:** [July 25, 2016, 4:07pm UTC](https://discuss.elastic.co/t/unique-count-with-tokenizer/56316/1 "2016-07-25T16:07:24Z")

</div>

I have a term that is using [Word Delimiter Token Filter](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-word-delimiter-tokenfilter.html). This configurations allows me to split a value like this "WORD1" into "WORD" and "1".

My problem is that I want the unique count of this term as a whole. As of now if I apply a Unique Count with just one value ("WORD1") it gives me two, one for "WORD" and the other for the number "1".

How can I make the Unique Count to search for the term as a whole value and not the tokens of it? (I need it to be tokenized in order to apply a filter to it)

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [July 25, 2016, 9:03pm UTC](https://discuss.elastic.co/t/unique-count-with-tokenizer/56316/2 "2016-07-25T21:03:40Z")

</div>

You might want to use a [Multi-Field](https://www.elastic.co/guide/en/elasticsearch/reference/current/_multi_fields.html) mapping to have a field in your index with the Word Delimiter Token Filter, and a "raw" value that can be used for cardinality metrics.

---

<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, 1:44pm UTC](https://discuss.elastic.co/t/unique-count-with-tokenizer/56316/3 "2017-07-06T13:44:11Z")

</div>


