# 400, 'mapper\_parsing\_exception', 'No type specified for field \[file\]'

**URL:** <https://discuss.elastic.co/t/400-mapper-parsing-exception-no-type-specified-for-field-file/208745>\
**Category:** Elasticsearch\
**Created:** [November 20, 2019, 5:15pm UTC](https://discuss.elastic.co/t/400-mapper-parsing-exception-no-type-specified-for-field-file/208745 "2019-11-20T17:15:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chari](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@chari](https://discuss.elastic.co/u/chari)\
**Post date:** [November 20, 2019, 5:15pm UTC](https://discuss.elastic.co/t/400-mapper-parsing-exception-no-type-specified-for-field-file/208745/1 "2019-11-20T17:15:37Z")

</div>

I am using the following code to create an index. Don't understand what is required to fix the error.

es.indices.create(  
index= "prestotest",  
body= {  
"mappings": {  
"properties": {  
"file" : {  
"properties ": {  
"url": {  
"type": "keyword",  
"index": False  
}  
}  
}  
}  
},  
"settings": {  
"analysis": {  
"analyzer": {  
"std\_english": {  
"type": "standard",  
"stopwords": "_english_"  
}  
}  
}  
}  
}  
)Preformatted text

---

<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:** [December 18, 2019, 5:15pm UTC](https://discuss.elastic.co/t/400-mapper-parsing-exception-no-type-specified-for-field-file/208745/2 "2019-12-18T17:15:38Z")

</div>

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