# Wildcard search case insensitive

**URL:** <https://discuss.elastic.co/t/wildcard-search-case-insensitive/122337>\
**Category:** Elasticsearch\
**Created:** [March 2, 2018, 10:56pm UTC](https://discuss.elastic.co/t/wildcard-search-case-insensitive/122337 "2018-03-02T22:56:18Z")\
**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:** [March 3, 2018, 12:17am UTC](https://discuss.elastic.co/t/wildcard-search-case-insensitive/122337/2 "2018-03-03T00:17:44Z")

</div>

So in short. When you index a field with a text type and default analyzer, it is indexed in lowercase and broken into tokens.

`Aaa Bbb` became `aaa`, `bbb`.

When you search with a wildcard query (which is a bad idea), you must use the same case as was indexed. So `aa*` should work where `Aa*` shouldn't.

For keywords, they are indexed as `Aaa Bbb`, so searching for `Aa*` will match. Note that `Bb*` won't match.

With a lowercase normalizer, `aa*` will match. `Aa*`, `Bb*` or `bb*` won't match.

---

_[View the full topic](https://discuss.elastic.co/t/wildcard-search-case-insensitive/122337)._
