# Search Analyzer not working!

**URL:** <https://discuss.elastic.co/t/search-analyzer-not-working/8299>\
**Category:** Elasticsearch\
**Created:** [July 3, 2012, 2:53pm UTC](https://discuss.elastic.co/t/search-analyzer-not-working/8299 "2012-07-03T14:53:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurabh](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Saurabh](https://discuss.elastic.co/u/Saurabh)\
**Post date:** [July 3, 2012, 2:53pm UTC](https://discuss.elastic.co/t/search-analyzer-not-working/8299/1 "2012-07-03T14:53:38Z")

</div>

hi,

i am using search\_analyzer : "myanalyzer" in the mappings. "myanalyzer" is  
of type standard with custom stop words.  
While searching i am not providing any analyzer(given that it automatically  
uses "myanalyzer", as provided in mappings), but the analyzer doesn't work.

Like i searched for "apple" i got some hits, but searching for "Apple"  
isn't giving any hits.

Can anyone explain this?

---

<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:** [July 3, 2012, 3:54pm UTC](https://discuss.elastic.co/t/search-analyzer-not-working/8299/2 "2012-07-03T15:54:54Z")

</div>

Do you have a curl recreation ? How do you search (query string ? Text ? Term ?)

David 😉  
Twitter : @dadoonet / @elasticsearchfr

Le 3 juil. 2012 à 16:53, Saurabh [saurabh.k1510@gmail.com](mailto:saurabh.k1510@gmail.com) a écrit :

> hi,
> 
> i am using search\_analyzer : "myanalyzer" in the mappings. "myanalyzer" is of type standard with custom stop words.  
> While searching i am not providing any analyzer(given that it automatically uses "myanalyzer", as provided in mappings), but the analyzer doesn't work.
> 
> Like i searched for "apple" i got some hits, but searching for "Apple" isn't giving any hits.
> 
> Can anyone explain this?

---

<div class="post-metadata">

**Author:** ![Saurabh](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Saurabh](https://discuss.elastic.co/u/Saurabh)\
**Post date:** [July 3, 2012, 4:17pm UTC](https://discuss.elastic.co/t/search-analyzer-not-working/8299/3 "2012-07-03T16:17:59Z")

</div>

i am creating query using QueryBuilder class and searching using  
SearchRequestBuilder.

On Tue, Jul 3, 2012 at 9:24 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Do you have a curl recreation ? How do you search (query string ? Text ?  
> Term ?)
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr
> 
> Le 3 juil. 2012 à 16:53, Saurabh [saurabh.k1510@gmail.com](mailto:saurabh.k1510@gmail.com) a écrit :
> 
> > hi,
> > 
> > i am using search\_analyzer : "myanalyzer" in the mappings. "myanalyzer"  
> > is of type standard with custom stop words.  
> > While searching i am not providing any analyzer(given that it  
> > automatically uses "myanalyzer", as provided in mappings), but the analyzer  
> > doesn't work.
> > 
> > Like i searched for "apple" i got some hits, but searching for "Apple"  
> > isn't giving any hits.
> > 
> > Can anyone explain this?

--  
Saurabh Kumar  
M.Sc (Mathematics) B.E (Computer Science)  
Birla Institute of Technology and Science-Pilani

---

<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:21am UTC](https://discuss.elastic.co/t/search-analyzer-not-working/8299/4 "2017-07-06T03:21:39Z")

</div>


