# How to Not index a field

**URL:** https://discuss.elastic.co/t/how-to-not-index-a-field/19256
**Category:** Elasticsearch
**Created:** [August 13, 2014, 1:35pm UTC](https://discuss.elastic.co/t/how-to-not-index-a-field/19256 "2014-08-13T13:35:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![IronMike](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@IronMike](https://discuss.elastic.co/u/IronMike)
#### Post date: [August 13, 2014, 1:35pm UTC](https://discuss.elastic.co/t/how-to-not-index-a-field/19256/1 "2014-08-13T13:35:52Z")

</div>

Is it possible in ElasticSearch?

Assume I have a doc { "field1":value1, "field2":value2 ...}

One of the fields "field2" I would like not to index, basically just store  
its content in ElasticSearch and retrieve it when need it.

--  
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/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [August 13, 2014, 1:39pm UTC](https://discuss.elastic.co/t/how-to-not-index-a-field/19256/2 "2014-08-13T13:39:49Z")

</div>

I'm not sure the right way to do it but if you set dynamic to false and  
then just send the field it'll be stored but not indexed.

On Wed, Aug 13, 2014 at 9:35 AM, Sam2014 [sabdalla80@gmail.com](mailto:sabdalla80@gmail.com) wrote:

> Is it possible in Elasticsearch?
> 
> Assume I have a doc { "field1":value1, "field2":value2 ...}
> 
> One of the fields "field2" I would like not to index, basically just store  
> its content in Elasticsearch and retrieve it when need it.
> 
> --  
> 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/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAPmjWd0Ov0ObTPgVi58hGNO5W2NrObcTNbajeS%3DNGyb5BE1wzQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0Ov0ObTPgVi58hGNO5W2NrObcTNbajeS%3DNGyb5BE1wzQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![IronMike](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@IronMike](https://discuss.elastic.co/u/IronMike)
#### Post date: [August 13, 2014, 2:54pm UTC](https://discuss.elastic.co/t/how-to-not-index-a-field/19256/3 "2014-08-13T14:54:32Z")

</div>

Is there a link/example of how to do this somewhere?

On Wednesday, August 13, 2014 9:40:16 AM UTC-4, Nikolas Everett wrote:

> I'm not sure the right way to do it but if you set dynamic to false and  
> then just send the field it'll be stored but not indexed.
> 
> On Wed, Aug 13, 2014 at 9:35 AM, Sam2014 \<[sabda...@gmail.com](mailto:sabda...@gmail.com) \<javascript:\>
> 
> > wrote:
> 
> > Is it possible in Elasticsearch?
> > 
> > Assume I have a doc { "field1":value1, "field2":value2 ...}
> > 
> > One of the fields "field2" I would like not to index, basically just  
> > store its content in Elasticsearch and retrieve it when need it.
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bafaa51a-e970-45b6-8acf-5666707edf4d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/257017cd-77b2-497d-a0d4-0a2cd80f5ed3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/257017cd-77b2-497d-a0d4-0a2cd80f5ed3%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, 1:08am UTC](https://discuss.elastic.co/t/how-to-not-index-a-field/19256/4 "2017-07-06T01:08:53Z")

</div>


