# Case sensitivity

**URL:** <https://discuss.elastic.co/t/case-sensitivity/6285>\
**Category:** Elasticsearch\
**Created:** [January 4, 2012, 1:10pm UTC](https://discuss.elastic.co/t/case-sensitivity/6285 "2012-01-04T13:10:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GambitK](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@GambitK](https://discuss.elastic.co/u/GambitK)\
**Post date:** [January 4, 2012, 1:10pm UTC](https://discuss.elastic.co/t/case-sensitivity/6285/1 "2012-01-04T13:10:41Z")

</div>

Are searches on elasticsearch case sensitive?

Right now I'm searching the message field for "Term" and "term" and I get  
different results. Any way to change this behavior?  
I would like to be able to search without case sensitivity.

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [January 4, 2012, 1:37pm UTC](https://discuss.elastic.co/t/case-sensitivity/6285/2 "2012-01-04T13:37:08Z")

</div>

On Wed, 2012-01-04 at 05:10 -0800, GambitK wrote:

> Are searches on elasticsearch case sensitive?
> 
> Right now I'm searching the message field for "Term" and "term" and I  
> get different results. Any way to change this behavior?  
> I would like to be able to search without case sensitivity.

Don't use a 'term' query. Use a 'text' query

clint

---

<div class="post-metadata">

**Author:** ![GambitK](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@GambitK](https://discuss.elastic.co/u/GambitK)\
**Post date:** [January 4, 2012, 1:41pm UTC](https://discuss.elastic.co/t/case-sensitivity/6285/3 "2012-01-04T13:41:00Z")

</div>

I'm using elasticsearch-head to do direct searches on an index that was  
created by graylog2.  
My options for search are: term, wildcard, prefix, fuzzy, range and  
query\_string.

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [January 4, 2012, 1:52pm UTC](https://discuss.elastic.co/t/case-sensitivity/6285/4 "2012-01-04T13:52:25Z")

</div>

On Wed, 2012-01-04 at 05:41 -0800, GambitK wrote:

> I'm using elasticsearch-head to do direct searches on an index that  
> was created by graylog2.  
> My options for search are: term, wildcard, prefix, fuzzy, range and  
> query\_string.

Then try the query\_string query

You can read more about them here:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

and see this tutorial:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

clint

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [January 4, 2012, 2:18pm UTC](https://discuss.elastic.co/t/case-sensitivity/6285/5 "2012-01-04T14:18:04Z")

</div>

> My options for search are: term, wildcard, prefix, fuzzy, range and  
> query\_string.

No, you can do any query when using "Any Request"

---

<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 6, 2017, 3:43am UTC](https://discuss.elastic.co/t/case-sensitivity/6285/6 "2017-07-06T03:43:50Z")

</div>


