# Not analyzed field and lowercase tokenizer

**URL:** https://discuss.elastic.co/t/not-analyzed-field-and-lowercase-tokenizer/12676
**Category:** Elasticsearch
**Created:** [July 5, 2013, 10:32am UTC](https://discuss.elastic.co/t/not-analyzed-field-and-lowercase-tokenizer/12676 "2013-07-05T10:32:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ankit\_Jain](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@Ankit\_Jain](https://discuss.elastic.co/u/Ankit_Jain)
#### Post date: [July 5, 2013, 10:32am UTC](https://discuss.elastic.co/t/not-analyzed-field-and-lowercase-tokenizer/12676/1 "2013-07-05T10:32:07Z")

</div>

Hi All,

I would like to use not\_analyzed along with lower-case tokenizer. So that,  
tokens of not analyzed field will store in lower-case.

is it possible to do above thing?

Regards,  
Ankit

--  
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: ![Boaz\_Leskes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boaz_leskes/32/723_2.png) [@Boaz\_Leskes](https://discuss.elastic.co/u/Boaz_Leskes)
#### Post date: [July 5, 2013, 12:55pm UTC](https://discuss.elastic.co/t/not-analyzed-field-and-lowercase-tokenizer/12676/2 "2013-07-05T12:55:47Z")

</div>

Hi Ankit,

Setting a field to not\_analyzed instructs ES to not change anything. What  
you need is analyzed with a custom text processing. You can combine the  
keyword tokenizer  
([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/analysis/keyword-tokenizer/)  
) with the lowercase token filter  
( [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/analysis/lowercase-tokenfilter/)  
)

You need to define a custom analyzer during index creation  
( [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/analysis/custom-analyzer/)  
) and then refer to it in your mapping (using the analyzer setting on the  
field in question)

Cheers,  
Boaz

On Friday, July 5, 2013 12:32:07 PM UTC+2, Ankit Jain wrote:

> Hi All,
> 
> I would like to use not\_analyzed along with lower-case tokenizer. So that,  
> tokens of not analyzed field will store in lower-case.
> 
> is it possible to do above thing?
> 
> Regards,  
> Ankit

--  
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:28am UTC](https://discuss.elastic.co/t/not-analyzed-field-and-lowercase-tokenizer/12676/3 "2017-07-06T02:28:02Z")

</div>


