Unable to search few words -- Elastic search


(pavan chinta) #1

Hi,

I am unable to search few key words though i set language analyzer.
Example : mountains. It is not returning mountain.

Let me know if i miss some thing here ?

{
"settings": {
"analysis" : {
"analyzer" : {
"my_analyzer" : {
"tokenizer" : "standard",
"filter" : ["standard", "lowercase", "my_stemmer"]
}
},
"filter" : {
"my_stemmer" : {
"type" : "stemmer",
"name" : "english"
}
}
}
}
}

Suggest me how to implement this ?

I queried back with below request.

{
"query":{
"bool":{
"must":[
{
"query_string":{
"default_field":"_all",
"query":"mountains*",
"analyzer":"my_analyzer"
}
}
]
}
}
}


(Mark Walkom) #2

Please don't post the same thing more than once, let's continue the discussion here - Unable to search few keywords


(Mark Walkom) #3