# MapperParsingException\[Analyzer \[name\_analyzer\] not found for field \[name\]\]

**URL:** <https://discuss.elastic.co/t/mapperparsingexception-analyzer-name-analyzer-not-found-for-field-name/7114>\
**Category:** Elasticsearch\
**Created:** [March 25, 2012, 10:36am UTC](https://discuss.elastic.co/t/mapperparsingexception-analyzer-name-analyzer-not-found-for-field-name/7114 "2012-03-25T10:36:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanwool](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@ryanwool](https://discuss.elastic.co/u/ryanwool)\
**Post date:** [March 25, 2012, 10:36am UTC](https://discuss.elastic.co/t/mapperparsingexception-analyzer-name-analyzer-not-found-for-field-name/7114/1 "2012-03-25T10:36:12Z")

</div>

Hi, I am using IK analyzer ([https://github.com/medcl/elasticsearch-analysis-ik](https://github.com/medcl/elasticsearch-analysis-ik)).

My following commands throws exception like below:

curl -XDELETE [http://localhost:9200/test](http://localhost:9200/test)

curl -XPUT [http://localhost:9200/test](http://localhost:9200/test) -d'  
{  
"analysis" : {  
"analyzer" : {  
"name\_analyzer" : {  
"type" : "org.elasticsearch.index.analysis.IkAnalyzerProvider",  
"tokenizer" : "name\_tokenizer"  
}  
},  
"tokenizer" : {  
"name\_tokenizer" : {  
"type" : "nGram",  
"min\_gram" : 1,  
"max\_gram" : 4  
}  
}  
}  
}'

curl -XPUT [http://localhost:9200/test/testtype/\_mapping](http://localhost:9200/test/testtype/_mapping) -d '  
{  
"testtype" : {  
"\_source" : {  
"enabled" : false  
},  
"\_all" : {  
"enabled" : true,  
"index\_analyzer": "ik",  
"search\_analyzer": "ik",  
"term\_vector": "no",  
"store": "false"  
},  
"properties" : {  
"name" : {  
"type" : "string",  
"index\_analyzer" : "name\_analyzer"  
}  
}  
}  
}'

{"error":"MapperParsingException[Analyzer [name\_analyzer] not found for field [name]]","status":400}

This issue confuses me for a while... can someone shed some light on this and see what I did wrong?

Thanks!  
Yanchen

---

<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:34am UTC](https://discuss.elastic.co/t/mapperparsingexception-analyzer-name-analyzer-not-found-for-field-name/7114/2 "2017-07-06T03:34:57Z")

</div>


