How to use customize analyzer in querystring

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

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

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

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 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> 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

Yes

On Thu, May 10, 2012 at 8:57 AM, jajoria abhishek <
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 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> 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