# How to use customize analyzer in querystring

**URL:** https://discuss.elastic.co/t/how-to-use-customize-analyzer-in-querystring/7597
**Category:** Elasticsearch
**Created:** [May 8, 2012, 12:24pm UTC](https://discuss.elastic.co/t/how-to-use-customize-analyzer-in-querystring/7597 "2012-05-08T12:24:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Abhishek\_Jajoria](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@Abhishek\_Jajoria](https://discuss.elastic.co/u/Abhishek_Jajoria)
#### Post date: [May 8, 2012, 12:24pm UTC](https://discuss.elastic.co/t/how-to-use-customize-analyzer-in-querystring/7597/1 "2012-05-08T12:24:54Z")

</div>

I have customize analyzer in my index mapping how can I use customize  
analyzer in my querystring too  
like  
{  
"query": {  
"query\_string": {  
"default\_field": "Item.A2.A2K",  
"query": "some text",  
"analyzer": "keywordlower"  
}  
}  
}  
where keywordlower is customize analyzer

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [May 10, 2012, 5:52am UTC](https://discuss.elastic.co/t/how-to-use-customize-analyzer-in-querystring/7597/2 "2012-05-10T05:52:36Z")

</div>

Yes, thats how. The analyzer will be used to parse the provided text. Note,  
if Item.A2.A2K already has this analyzer associated with it through the  
mappings, it will be used automatically.

On Tue, May 8, 2012 at 3:24 PM, jajoria abhishek \<[jajoria.abhishek@gmail.com](mailto:jajoria.abhishek@gmail.com)

> wrote:

> I have customize analyzer in my index mapping how can I use customize  
> analyzer in my querystring too  
> like  
> {  
> "query": {  
> "query\_string": {  
> "default\_field": "Item.A2.A2K",  
> "query": "some text",  
> "analyzer": "keywordlower"  
> }  
> }  
> }  
> where keywordlower is customize analyzer

---

<div class="post-metadata">

### Author: ![Abhishek\_Jajoria](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@Abhishek\_Jajoria](https://discuss.elastic.co/u/Abhishek_Jajoria)
#### Post date: [May 10, 2012, 5:57am UTC](https://discuss.elastic.co/t/how-to-use-customize-analyzer-in-querystring/7597/3 "2012-05-10T05:57:37Z")

</div>

You mean like this  
"A2.A2K":{  
"type" : "string",  
"index": "analyzed",  
"index\_analyzer":"Keywordlower",  
"search\_analyzer":" Keywordlower",  
}

On Thu, May 10, 2012 at 11:22 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> Yes, thats how. The analyzer will be used to parse the provided text.  
> Note, if Item.A2.A2K already has this analyzer associated with it through  
> the mappings, it will be used automatically.
> 
> On Tue, May 8, 2012 at 3:24 PM, jajoria abhishek \<  
> [jajoria.abhishek@gmail.com](mailto:jajoria.abhishek@gmail.com)\> wrote:
> 
> > I have customize analyzer in my index mapping how can I use customize  
> > analyzer in my querystring too  
> > like  
> > {  
> > "query": {  
> > "query\_string": {  
> > "default\_field": "Item.A2.A2K",  
> > "query": "some text",  
> > "analyzer": "keywordlower"  
> > }  
> > }  
> > }  
> > where keywordlower is customize analyzer

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [May 13, 2012, 9:41am UTC](https://discuss.elastic.co/t/how-to-use-customize-analyzer-in-querystring/7597/4 "2012-05-13T09:41:12Z")

</div>

Yes

On Thu, May 10, 2012 at 8:57 AM, jajoria abhishek \<  
[jajoria.abhishek@gmail.com](mailto:jajoria.abhishek@gmail.com)\> wrote:

> You mean like this  
> "A2.A2K":{  
> "type" : "string",  
> "index": "analyzed",  
> "index\_analyzer":"Keywordlower",  
> "search\_analyzer":" Keywordlower",  
> }
> 
> On Thu, May 10, 2012 at 11:22 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > Yes, thats how. The analyzer will be used to parse the provided text.  
> > Note, if Item.A2.A2K already has this analyzer associated with it through  
> > the mappings, it will be used automatically.
> > 
> > On Tue, May 8, 2012 at 3:24 PM, jajoria abhishek \<  
> > [jajoria.abhishek@gmail.com](mailto:jajoria.abhishek@gmail.com)\> wrote:
> > 
> > > I have customize analyzer in my index mapping how can I use customize  
> > > analyzer in my querystring too  
> > > like  
> > > {  
> > > "query": {  
> > > "query\_string": {  
> > > "default\_field": "Item.A2.A2K",  
> > > "query": "some text",  
> > > "analyzer": "keywordlower"  
> > > }  
> > > }  
> > > }  
> > > where keywordlower is customize analyzer

---

<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:29am UTC](https://discuss.elastic.co/t/how-to-use-customize-analyzer-in-querystring/7597/5 "2017-07-06T03:29:08Z")

</div>


