# How to use language analyzer in nested mapping

**URL:** <https://discuss.elastic.co/t/how-to-use-language-analyzer-in-nested-mapping/100445>\
**Category:** Elasticsearch\
**Created:** [September 14, 2017, 4:00am UTC](https://discuss.elastic.co/t/how-to-use-language-analyzer-in-nested-mapping/100445 "2017-09-14T04:00:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![honey](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@honey](https://discuss.elastic.co/u/honey)\
**Post date:** [September 14, 2017, 4:00am UTC](https://discuss.elastic.co/t/how-to-use-language-analyzer-in-nested-mapping/100445/1 "2017-09-14T04:00:25Z")

</div>

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.

---

<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:** [October 12, 2017, 4:00am UTC](https://discuss.elastic.co/t/how-to-use-language-analyzer-in-nested-mapping/100445/2 "2017-10-12T04:00:26Z")

</div>

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