# How to perform case insensitive search on keyword tokenizer

**URL:** <https://discuss.elastic.co/t/how-to-perform-case-insensitive-search-on-keyword-tokenizer/41184>\
**Category:** Elasticsearch\
**Created:** [February 8, 2016, 1:31pm UTC](https://discuss.elastic.co/t/how-to-perform-case-insensitive-search-on-keyword-tokenizer/41184 "2016-02-08T13:31:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navneet\_Mathpal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/navneet_mathpal/32/3677_2.png) [@Navneet\_Mathpal](https://discuss.elastic.co/u/Navneet_Mathpal)\
**Post date:** [February 8, 2016, 1:31pm UTC](https://discuss.elastic.co/t/how-to-perform-case-insensitive-search-on-keyword-tokenizer/41184/1 "2016-02-08T13:31:15Z")

</div>

Hi,

I have a requirement where I need to perform case insensitive search for keyword tokenize field , If I use lowercase filter then it converts all the data into lower case that I do not want . I am using wild card query for search (I am using this for auto-complete).  
I am using keyword tokenizer because When I search for "keyword-" , it should not perform lucene query and exclude the second word.

let us suppose we have two string

HELLO-THIS-is-First  
hello-this-IS-first

when I search using hello or HELLO- ,it should return both the doc but in different case.

Any idea how can I achieve this.

Best Regards,  
Navneet

---

<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 5, 2017, 11:18pm UTC](https://discuss.elastic.co/t/how-to-perform-case-insensitive-search-on-keyword-tokenizer/41184/2 "2017-07-05T23:18:13Z")

</div>


