# Case insensitive search on FieldNames not values

**URL:** <https://discuss.elastic.co/t/case-insensitive-search-on-fieldnames-not-values/87097>\
**Category:** Elasticsearch\
**Created:** [May 25, 2017, 10:19am UTC](https://discuss.elastic.co/t/case-insensitive-search-on-fieldnames-not-values/87097 "2017-05-25T10:19:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul2](https://avatars.discourse-cdn.com/v4/letter/p/df705f/32.png) [@paul2](https://discuss.elastic.co/u/paul2)\
**Post date:** [May 25, 2017, 10:19am UTC](https://discuss.elastic.co/t/case-insensitive-search-on-fieldnames-not-values/87097/1 "2017-05-25T10:19:14Z")

</div>

Hi, I want to search a field. The fields, not field value, are either camel case, pascal case, lower case or upper case. When I do a search I don't know what case the field is.

What options do I have...  
Make everything uppercase when indexing?  
Include a lowercase insensitive when indexing?  
Or when I search, can I set it to case insensitive

Just to be clear, I'm not talking about the values, just the field names

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [May 25, 2017, 10:51am UTC](https://discuss.elastic.co/t/case-insensitive-search-on-fieldnames-not-values/87097/2 "2017-05-25T10:51:26Z")

</div>

You can't set the field names to be case insensitive at query time. You will need to normalise the field names in you document when indexing so they use a consistent case and also use this consistent case when searching too.

---

<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:** [June 22, 2017, 10:51am UTC](https://discuss.elastic.co/t/case-insensitive-search-on-fieldnames-not-values/87097/3 "2017-06-22T10:51:37Z")

</div>

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