# What's the difference between "enabled," "index," and "store?"

**URL:** <https://discuss.elastic.co/t/whats-the-difference-between-enabled-index-and-store/10717>\
**Category:** Elasticsearch\
**Created:** [February 12, 2013, 10:35pm UTC](https://discuss.elastic.co/t/whats-the-difference-between-enabled-index-and-store/10717 "2013-02-12T22:35:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)\
**Post date:** [February 12, 2013, 11:25pm UTC](https://discuss.elastic.co/t/whats-the-difference-between-enabled-index-and-store/10717/3 "2013-02-12T23:25:00Z")

</div>

Brian Jones wrote:

> I can't wrap my head around the difference between the field attributes  
> "enabled," "index," and "store." How is setting a field to { "enabled" :  
> false }, different than setting it to { "index" : "no" }? What part does  
> "store" play in all this? Is { "store" : "yes" } the same as { "index" :  
> "not\_analyzed" }?

If \_index is enabled, your doc will store where it's indexed in a  
field in the doc.

"index" in the mapping refers to the analysis of the field data  
during indexing operation. It determines how text is tokenized and  
filtered.

"store" allows a field to be stored in the Lucene document as its own  
Field. This is traditionally how you would store data in a  
Lucene-based search engine.

\_source is an optimized field stored in Lucene that ES manages for  
you. It's very efficient to store and retrieve. I hear you that it  
seems intuitive it would be slower to deserialize a field full of all  
the fields' data rather than a single field with just what you want,  
but the difference is so small you will probably feel the pain  
somewhere else before you ever see it there (namely IO).

For 99.9% of cases, \_source is performant enough that its convenience  
outweighs selectively storing. It's compressed in a binary format  
that is really fast and really small. It also enables you to be able  
to reindex data easily. We recommend you use it until you have a  
measurable need to not use it. Often it's a premature optimization  
to not use it.

-Drew

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

_[View the full topic](https://discuss.elastic.co/t/whats-the-difference-between-enabled-index-and-store/10717)._
