# Start-with phrase search in document \_id. Case-sensitivity problem

**URL:** https://discuss.elastic.co/t/start-with-phrase-search-in-document--id-case-sensitivity-problem/21626
**Category:** Elasticsearch
**Created:** [January 14, 2015, 7:38am UTC](https://discuss.elastic.co/t/start-with-phrase-search-in-document--id-case-sensitivity-problem/21626 "2015-01-14T07:38:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shtriha](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@shtriha](https://discuss.elastic.co/u/shtriha)
#### Post date: [January 14, 2015, 7:38am UTC](https://discuss.elastic.co/t/start-with-phrase-search-in-document--id-case-sensitivity-problem/21626/1 "2015-01-14T07:38:51Z")

</div>

I want to search a phrase in document \_id.  
I added configuration to mapping template: "\_id" : { "index":  
"not\_analyzed" }. It works just fine, the problem occurs when \_id contains  
lowercase and uppercase letters. For example for \_id "BigMonkey" it  
searches phrase by "\*onkey" but can't find it by "\*Monkey". How this can be  
fixed?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/db9a27f9-19fd-43cb-af54-8e3f29c0ca55%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/db9a27f9-19fd-43cb-af54-8e3f29c0ca55%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:39am UTC](https://discuss.elastic.co/t/start-with-phrase-search-in-document--id-case-sensitivity-problem/21626/2 "2017-07-06T00:39:07Z")

</div>


