# MapperParsingException

**URL:** https://discuss.elastic.co/t/mapperparsingexception/739
**Category:** Elasticsearch
**Created:** [May 15, 2015, 7:47am UTC](https://discuss.elastic.co/t/mapperparsingexception/739 "2015-05-15T07:47:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![leo](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@leo](https://discuss.elastic.co/u/leo)
#### Post date: [May 15, 2015, 7:47am UTC](https://discuss.elastic.co/t/mapperparsingexception/739/1 "2015-05-15T07:47:54Z")

</div>

Hi,  
First of all, thank U for sharing the wonderful product ElasticSeach.  
These days ,I have confronted some confuses.I hope U can help me.  
When I execute the curl command as follows(I just wanna create an index):

```
curl -XPUT 'http://localhost:9200/es4zq2/_mapping/netdepartment' -d '{"netdepartment":{"properties":{"MOBILEPHONE":{"analyzer": "ik","type": "string"},"MODIFYTIME": {"format": "dateOptionalTime","type": "date"},"trs_publish_month": {"format": "yyyy-MM","type": "date"},"DEPARTMENTID": {"type":"integer"},"CRTIME": {"format": "dateOptionalTime","type": "date"},"match_all": {"type": "object"},"DEPARTMENTDESC": {"analyzer": "ik","type": "string"},"ISVALIDITY": {"type": "integer"},"EMAIL": {"analyzer": "ik","type": "string"},"trs_global_version": {"type": "long"},"MODIFYUSER": {"analyzer": "ik","type": "string"},"CRUSER": {"analyzer":"ik","type": "string"},"SYSGROUPID": {"type": "integer"},"MODIFYFLAG": {"type": "integer"},"EVENTNOTIFY": {"type": "integer"},"DEPARTMENTORDER": {"type": "integer"},"DEPARTMENTTYPE": {"type": "integer"},"PRINCIPAL": {"analyzer": "ik","type": "string"},"trs_category_flag": {"type": "short"},"DEPARTMENTNAME": {"analyzer": "ik","type": "string"},"trs_publish_year": {"format": "yyyy","type": "date"},"trs_field_weight": {"type": "short"},"trs_global_category": {"type": "short"},"trs_publish_day": {"format": "yyyy-MM-dd","type": "date"},"PARENTDPMID": {"type": "integer"}}}}'

```

But It feddback an error:(BTW,this statement can be executed correct in other ES Server.)  
 ![](https://sea2.discourse-cdn.com/elastic/uploads/default/204/961a04a7eb4e476a.png)  
as U can see,there is no field which is named title,description,price,onSale and so on.

* * *

there is no template for the index.  
 ![](https://sea2.discourse-cdn.com/elastic/uploads/default/205/a3e3a54b869f0e5c.png)

* * *

there is no .json file in the mappings dir.  
 ![](https://sea2.discourse-cdn.com/elastic/uploads/default/206/82c246a4a26f36ef.png)

* * *

PS:  
I have put default.json on conf/mapping many days ago. And then ,I deleted the mapping dir yestoday.and I have restart the elasticsearch.  
default.json contains these fields(title,onSale,description...).  
this is start info:

![](https://sea2.discourse-cdn.com/elastic/uploads/default/207/b79fb9f4acc2e122.png)

* * *

Questions:  
1.how can I fix the error,why the error appeared?  
2.If I delete the dymatic mapping file(json file in conf/mappings/index),does the mapping work on late index?  
3.what can i do if I want to delete this template which is created by json file?  
thank U very much.

---

<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, 12:13am UTC](https://discuss.elastic.co/t/mapperparsingexception/739/2 "2017-07-06T00:13:51Z")

</div>


