# Mapping store:true vs store:false

**URL:** <https://discuss.elastic.co/t/mapping-store-true-vs-store-false/20747>\
**Category:** Elasticsearch\
**Created:** [November 14, 2014, 11:29am UTC](https://discuss.elastic.co/t/mapping-store-true-vs-store-false/20747 "2014-11-14T11:29:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavel\_P](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavel_p/32/1092_2.png) [@Pavel\_P](https://discuss.elastic.co/u/Pavel_P)\
**Post date:** [November 14, 2014, 11:29am UTC](https://discuss.elastic.co/t/mapping-store-true-vs-store-false/20747/1 "2014-11-14T11:29:57Z")

</div>

Hi,

I was trying to configure the mapping for my logstash objects in the next  
way:

"my\_type":{  
"dynamic\_templates": [{  
"string\_fields": {  
"mapping": {  
"index": "no",  
"type": "string"  
},  
"match\_mapping\_type": "string",  
"match": "\*"  
}  
}],  
"properties": {  
"heroku\_dyno": {

- 

```
     "store": true,*

```

- 

```
       "index":"not_analyzed",*
      "type": "string"
      },
  "clean_message": {
   "store":true,
   "index":"analyzed",
   "type": "string"
  },
  "eventType": {
      "properties": {
          "enumClass": {
            "index":"not_analyzed",
            "type": "string"
          },
          "value": {
            "index":"not_analyzed",
            "type": "string"
          }
      }
  }

```

...

As soon as I updated my mapping with this, ES stops to create the indixies  
and add the documents.  
So I've removed the part with "store":true, and it started to work.

It seems that only the combination "store":true and "index":"analyzed"  
works.

Could someone explain me, how should I define for the ES literary - yes, do  
store it in the index but not analyze it?  
Or I shouldn't do that?

Could someone explain when it's time to use "store":true/false in the  
mapping definition and when it's not?

ES version I used: 1.3.2 .

Any thoughts?

Regards,

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e5d7a878-814c-450f-9d23-612b9b94c52e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e5d7a878-814c-450f-9d23-612b9b94c52e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [November 15, 2014, 6:21am UTC](https://discuss.elastic.co/t/mapping-store-true-vs-store-false/20747/2 "2014-11-15T06:21:11Z")

</div>

Especially when feeding log data via logstash, I have never used store:true  
and have found no need to specify it at all. The logstash JSON will be  
stored as the \_source and retrieved by the query so there is no need to use  
store at all.

Anyway, that's my experience.

Brian

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/46a13fd5-5469-4aab-accd-60a33b27a096%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/46a13fd5-5469-4aab-accd-60a33b27a096%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:49am UTC](https://discuss.elastic.co/t/mapping-store-true-vs-store-false/20747/3 "2017-07-06T00:49:51Z")

</div>


