# Specifying a default elasticsearch mapping in a file

**URL:** <https://discuss.elastic.co/t/specifying-a-default-elasticsearch-mapping-in-a-file/23636>\
**Category:** Elasticsearch\
**Created:** [May 17, 2015, 11:31am UTC](https://discuss.elastic.co/t/specifying-a-default-elasticsearch-mapping-in-a-file/23636 "2015-05-17T11:31:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spadez](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@spadez](https://discuss.elastic.co/u/spadez)\
**Post date:** [May 17, 2015, 11:31am UTC](https://discuss.elastic.co/t/specifying-a-default-elasticsearch-mapping-in-a-file/23636/1 "2015-05-17T11:31:55Z")

</div>

I'm trying to use a json file to define the default mapping for each index. This is what I am trying to do:

**/usr/share/elasticsearch/config/mappings/\_default/mymap.json**

{  
"item": {  
"properties": {  
"uuid": {"type": "string", "store": "yes", "index": "no"},  
"title": {"type": "string", "store": "yes", "boost": 5,  
"index": "analyzed", "analyzer": "english"},  
"description": {"type": "string", "store": "yes", "boost": 3,  
"index": "analyzed", "analyzer": "english"},  
}

When I try and query my index\_test elasticsearch index I get this:

curl -XGET 'http://...:9200/index\_test/\_mapping'  
{"index\_test":{"mappings":{}}}

I used the documentation found on here. Any help would be appreciated.

> **[An Introduction to Elasticsearch Mapping
	  	 | Elastic](https://www.elastic.co/blog/found-elasticsearch-mapping-introduction)**
>
> This article will give an introduction to the mapping feature of Elasticsearch. We'll define the key terms and take a closer look at what mapping is, when we specify it, how it is structured and how we can apply it to our data.

---

<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/specifying-a-default-elasticsearch-mapping-in-a-file/23636/2 "2017-07-06T00:13:38Z")

</div>


