# Deciding correct analyzer for the field mapping & searching

**URL:** <https://discuss.elastic.co/t/deciding-correct-analyzer-for-the-field-mapping-searching/22562>\
**Category:** Elasticsearch\
**Created:** [March 6, 2015, 4:39pm UTC](https://discuss.elastic.co/t/deciding-correct-analyzer-for-the-field-mapping-searching/22562 "2015-03-06T16:39:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagar\_Shah](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@Sagar\_Shah](https://discuss.elastic.co/u/Sagar_Shah)\
**Post date:** [March 6, 2015, 4:39pm UTC](https://discuss.elastic.co/t/deciding-correct-analyzer-for-the-field-mapping-searching/22562/1 "2015-03-06T16:39:50Z")

</div>

Hello everyone,  
I want a search capability on a field that contains 1 or 2 lines of  
statements.

I went through many articles but could not find right fit for analyzers.

Scenario: User may input any text containing single or multiple word or  
even half word and it can be in any case (upper or lower).

I want to search that user input on one of the fields.

Now,

- When I go with simple analyzer: it lower cases the text for search, but  
when user input multiple fields, it doesn't find a record
- When I got with no analyzer and wild card search: It gives me everything  
, but search becomes case sensitive

Could anyone please suggest how I can fulfil this scenario in elastic  
search?

Basically, I want my search to be case-insensitive and user may provide  
input of one or more words or even a half (partial) word.

Appreciate your inputs!

Regards,  
Sagar Shah

--  
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/3aab5c31-d563-4c5e-b9ee-cf04fb54a6f4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3aab5c31-d563-4c5e-b9ee-cf04fb54a6f4%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:28am UTC](https://discuss.elastic.co/t/deciding-correct-analyzer-for-the-field-mapping-searching/22562/2 "2017-07-06T00:28:00Z")

</div>


