# Store true not helping?

**URL:** <https://discuss.elastic.co/t/store-true-not-helping/34915>\
**Category:** Elasticsearch\
**Created:** [November 18, 2015, 10:21am UTC](https://discuss.elastic.co/t/store-true-not-helping/34915 "2015-11-18T10:21:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aacb9](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@aacb9](https://discuss.elastic.co/u/aacb9)\
**Post date:** [November 18, 2015, 10:21am UTC](https://discuss.elastic.co/t/store-true-not-helping/34915/1 "2015-11-18T10:21:25Z")

</div>

With dynamic template mapping I try to set store: true to be able to disable \_source field but doesn't seem to help.

My one template:

```
{
"template": "mytype*",
"settings": {
    "number_of_shards": 3
},
"mappings": {
    "mytype": {
        "_source": { "enabled": false },
        "dynamic_templates": [
            {
                "default": {
                    "match": "*",
                    "match_mapping_type": "string",
                    "mapping": {
                        "type": "string",
                        "index": "not_analyzed",
                        "doc_values": true,
                        "store": true
                    }
                }
            }
        ]
    }
}

```

}

Output of search [http://localhost:9200/mytype-2015.11.18/\_mapping?pretty](http://localhost:9200/mytype-2015.11.18/_mapping?pretty)

```
{
  "took" : 1,
  "timed_out" : false,
  "_shards" : {
    "total" : 3,
    "successful" : 3,
    "failed" : 0
  },
  "hits" : {
    "total" : 1,
    "max_score" : 1.0,
    "hits" : [ {
      "_index" : "mytype-2015.11.18",
      "_type" : "mytype",
      "_id" : "AVEaHFEMPCABS4o_WJOa",
      "_score" : 1.0
    } ]
  }
}
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 18, 2015, 10:56am UTC](https://discuss.elastic.co/t/store-true-not-helping/34915/2 "2015-11-18T10:56:17Z")

</div>

Sorry but this is not the result of `_mapping` API.

---

<div class="post-metadata">

**Author:** ![aacb9](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@aacb9](https://discuss.elastic.co/u/aacb9)\
**Post date:** [November 18, 2015, 5:48pm UTC](https://discuss.elastic.co/t/store-true-not-helping/34915/3 "2015-11-18T17:48:30Z")

</div>

You're right of course, sorry that is the result of \_search. What I'm surprised is my extra fields don't show up here.

---

<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 5, 2017, 11:37pm UTC](https://discuss.elastic.co/t/store-true-not-helping/34915/4 "2017-07-05T23:37:32Z")

</div>


