How to use language analyzer in nested mapping


(gidwani honey) #1

I am presently working with language analyzer. In this I found that if we need to use the analyzer for searching documents then we need to define mapping along with analyzer.
In my case, if document contains a normal text field this works fine but when I apply same property to a nested field then the analyzer is not working.

This is code for language analyzer

PUT checkmap
{
"settings": {
"analysis" : {
"analyzer" : {
"stemmerenglish" : {
"tokenizer" : "standard",
"filter" : ["standard", "lowercase", "my_stemmer"]
}
},
"filter" : {
"my_stemmer" : {
"type" : "stemmer",
"name" : "english"
}
}
}
},
"mappings": {
"dd": {
"properties": {
"Courses": {
"type" : "nested",
"properties": {
"Sname" : {
"type" : "text",
"analyzer": "stemmerenglish",
"search_analyzer": "stemmerenglish"
}
}
}
}
}
}
}
Please help me out with above problem.


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.