# How to implement analyzer?

**URL:** <https://discuss.elastic.co/t/how-to-implement-analyzer/3737>\
**Category:** Elasticsearch\
**Created:** [January 4, 2011, 11:18am UTC](https://discuss.elastic.co/t/how-to-implement-analyzer/3737 "2011-01-04T11:18:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [January 4, 2011, 11:18am UTC](https://discuss.elastic.co/t/how-to-implement-analyzer/3737/1 "2011-01-04T11:18:18Z")

</div>

I configured analyzer in elasticsearch.yml with below define  
configuration :

index :  
analysis :  
analyzer :  
default :  
tokenizer:lowercase

After the setting I searched the string "r\*" which gives me the doc  
which contains Rahul and ramesh.  
Then I searched for "R\*" This gave me the 0 hit.

I want to analyzed the querystring text with following settings.I  
have confusion regarding,using analyzer in index.

---

<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, 2011, 11:29am UTC](https://discuss.elastic.co/t/how-to-implement-analyzer/3737/2 "2011-01-04T11:29:30Z")

</div>

On Tue, 2011-01-04 at 03:18 -0800, sam wrote:

> I configured analyzer in elasticsearch.yml with below define  
> configuration :
> 
> index :  
> analysis :  
> analyzer :  
> default :  
> tokenizer:lowercase
> 
> After the setting I searched the string "r\*" which gives me the doc  
> which contains Rahul and ramesh.  
> Then I searched for "R\*" This gave me the 0 hit.

How are you searching?

It sounds like you're doing a term search, not a query string search

clint

---

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [January 4, 2011, 11:56am UTC](https://discuss.elastic.co/t/how-to-implement-analyzer/3737/3 "2011-01-04T11:56:50Z")

</div>

basically i am using wildcardQuery.when i am using queryString it  
gives the same value hits using small letter and caps.i want know how  
analyzer works.

On Jan 4, 4:29 pm, Clinton Gormley [clin...@iannounce.co.uk](mailto:clin...@iannounce.co.uk) wrote:

> On Tue, 2011-01-04 at 03:18 -0800, sam wrote:
> 
> > I configured analyzer in elasticsearch.yml with below define  
> > configuration :
> 
> > index :  
> > analysis :  
> > analyzer :  
> > default :  
> > tokenizer:lowercase
> 
> > After the setting I searched the string "r\*" which gives me the doc  
> > which contains Rahul and ramesh.  
> > Then I searched for "R\*" This gave me the 0 hit.
> 
> How are you searching?
> 
> It sounds like you're doing a term search, not a query string search
> 
> clint

---

<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, 4:14am UTC](https://discuss.elastic.co/t/how-to-implement-analyzer/3737/4 "2017-07-06T04:14:25Z")

</div>


