# Case-insensitive search of a substring in many (or all) fields

**URL:** <https://discuss.elastic.co/t/case-insensitive-search-of-a-substring-in-many-or-all-fields/227650>\
**Category:** Elasticsearch\
**Created:** [April 12, 2020, 8:28am UTC](https://discuss.elastic.co/t/case-insensitive-search-of-a-substring-in-many-or-all-fields/227650 "2020-04-12T08:28:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 12, 2020, 9:09am UTC](https://discuss.elastic.co/t/case-insensitive-search-of-a-substring-in-many-or-all-fields/227650/2 "2020-04-12T09:09:14Z")

</div>

Bonjour 😉

You need probably to define your own analyzer. I'd use some ngrams, lowercase and asciifolding token filters.

If you can't make it work, could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

In case you need, there's also a french speaking space: #in-your-native-tongue:discussions-en-francais 😉

---

_[View the full topic](https://discuss.elastic.co/t/case-insensitive-search-of-a-substring-in-many-or-all-fields/227650)._
