# Doc\_values in index template for new generated indexes

**URL:** https://discuss.elastic.co/t/doc-values-in-index-template-for-new-generated-indexes/22700
**Category:** Elasticsearch
**Created:** [March 17, 2015, 3:35am UTC](https://discuss.elastic.co/t/doc-values-in-index-template-for-new-generated-indexes/22700 "2015-03-17T03:35:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chris85lang](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@chris85lang](https://discuss.elastic.co/u/chris85lang)
#### Post date: [March 17, 2015, 3:35am UTC](https://discuss.elastic.co/t/doc-values-in-index-template-for-new-generated-indexes/22700/1 "2015-03-17T03:35:22Z")

</div>

Hello,

We have an elasticsearch setup where we are using the default values, so no  
doc\_values. How can I add doc\_values: true to the index template so that  
the new daily based generated indexes using this feature.

Thank you in advanced!

Cheers  
Chris

--  
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/81c8614a-4946-49ac-9e98-9af787445b92%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/81c8614a-4946-49ac-9e98-9af787445b92%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)
#### Post date: [March 17, 2015, 12:12pm UTC](https://discuss.elastic.co/t/doc-values-in-index-template-for-new-generated-indexes/22700/2 "2015-03-17T12:12:16Z")

</div>

[http://www.elastic.co/guide/en/elasticsearch/guide/current/doc-values.html#\_enabling\_doc\_values](http://www.elastic.co/guide/en/elasticsearch/guide/current/doc-values.html#_enabling_doc_values)

--

Itamar Syn-Hershko  
[http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
Freelance Developer & Consultant  
[Lucene.NET](http://Lucene.NET) committer and PMC member

On Tue, Mar 17, 2015 at 5:35 AM, [chris85lang@googlemail.com](mailto:chris85lang@googlemail.com) wrote:

> Hello,
> 
> We have an elasticsearch setup where we are using the default values, so  
> no doc\_values. How can I add doc\_values: true to the index template so that  
> the new daily based generated indexes using this feature.
> 
> Thank you in advanced!
> 
> Cheers  
> Chris
> 
> --  
> 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/81c8614a-4946-49ac-9e98-9af787445b92%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/81c8614a-4946-49ac-9e98-9af787445b92%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/81c8614a-4946-49ac-9e98-9af787445b92%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/81c8614a-4946-49ac-9e98-9af787445b92%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/CAHTr4ZuKEgR0uhttUBVoA2YQ4Cgu8BbX%3DYqZuJsuFzmUJY8Cfg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZuKEgR0uhttUBVoA2YQ4Cgu8BbX%3DYqZuJsuFzmUJY8Cfg%40mail.gmail.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:26am UTC](https://discuss.elastic.co/t/doc-values-in-index-template-for-new-generated-indexes/22700/3 "2017-07-06T00:26:19Z")

</div>


