# Elasticsearch unwanted lowercase when indexing

**URL:** <https://discuss.elastic.co/t/elasticsearch-unwanted-lowercase-when-indexing/257954>\
**Category:** Elasticsearch\
**Created:** [December 8, 2020, 8:32am UTC](https://discuss.elastic.co/t/elasticsearch-unwanted-lowercase-when-indexing/257954 "2020-12-08T08:32:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bogdan\_copocean](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bogdan_copocean/32/80410_2.png) [@bogdan\_copocean](https://discuss.elastic.co/u/bogdan_copocean)\
**Post date:** [December 8, 2020, 8:32am UTC](https://discuss.elastic.co/t/elasticsearch-unwanted-lowercase-when-indexing/257954/1 "2020-12-08T08:32:31Z")

</div>

Hi there,

I have an indexing problem with Elasticsearch. I have a field with the type "text" that makes its value lowercase.

I'm using Hot-Warm-Architecture policy with index templates where I specify shard settings and mapping(where i specified that field to be text).

Any idea what could be?

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [December 8, 2020, 8:42am UTC](https://discuss.elastic.co/t/elasticsearch-unwanted-lowercase-when-indexing/257954/2 "2020-12-08T08:42:02Z")

</div>

Normally case insensitivity is desirable in text fields. What is the content you are indexing and why is case important?  
Depending on the answers it may be more appropriate to use the keyword field.

---

<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:** [January 5, 2021, 8:42am UTC](https://discuss.elastic.co/t/elasticsearch-unwanted-lowercase-when-indexing/257954/3 "2021-01-05T08:42:07Z")

</div>

Closed on January 5, 2021, 8:42am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
