# Case Insensitive Search/Sort by Keyword field

**URL:** https://discuss.elastic.co/t/case-insensitive-search-sort-by-keyword-field/128260
**Category:** Elasticsearch
**Created:** [April 16, 2018, 11:11pm UTC](https://discuss.elastic.co/t/case-insensitive-search-sort-by-keyword-field/128260 "2018-04-16T23:11:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Xiaoping](https://avatars.discourse-cdn.com/v4/letter/x/77aa72/32.png) [@Xiaoping](https://discuss.elastic.co/u/Xiaoping)
#### Post date: [April 16, 2018, 11:11pm UTC](https://discuss.elastic.co/t/case-insensitive-search-sort-by-keyword-field/128260/1 "2018-04-16T23:11:39Z")

</div>

We have a use case to support case insensitive sort on certain fields of keyword type. It seems the general practice is to use normalizer on keyword fields. However, a coworker is concerned that, per ElasticSearch online documentation, normalized is a beta feature and subject to change, and so should be avoided.

My questions are:

1. Will support for normalizer leave the beta status and become a GA feature in a near future release?
2. If normalizer is not used, what's the alternative to support case-insensitive search/sort on a keyword field?

---

<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 17, 2018, 5:04am UTC](https://discuss.elastic.co/t/case-insensitive-search-sort-by-keyword-field/128260/2 "2018-04-17T05:04:03Z")

</div>

I believe this feature is pretty much stable. @jpountz could share his thoughts though.

---

<div class="post-metadata">

### Author: ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)
#### Post date: [April 17, 2018, 6:42am UTC](https://discuss.elastic.co/t/case-insensitive-search-sort-by-keyword-field/128260/3 "2018-04-17T06:42:44Z")

</div>

> [@Xiaoping](#):
>
> Will support for normalizer leave the beta status and become a GA feature in a near future release?

We haven't decided yet. We will likely keep a way to normalize keywords, only the way to do it may change and we'll do our best to make the transition easy.

> [@Xiaoping](#):
>
> If normalizer is not used, what's the alternative to support case-insensitive search/sort on a keyword field?

The alternative is to lowercase the keyword on client-side before putting it into the `_source`. Or potentially automate it with an ingest processor.

---

<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: [May 15, 2018, 6:42am UTC](https://discuss.elastic.co/t/case-insensitive-search-sort-by-keyword-field/128260/4 "2018-05-15T06:42:47Z")

</div>

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