# Disable doc\_values and index for nested type fields

**URL:** <https://discuss.elastic.co/t/disable-doc-values-and-index-for-nested-type-fields/290609>\
**Category:** Elasticsearch\
**Created:** [November 30, 2021, 10:42pm UTC](https://discuss.elastic.co/t/disable-doc-values-and-index-for-nested-type-fields/290609 "2021-11-30T22:42:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NLSVTN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nlsvtn/32/84889_2.png) [@NLSVTN](https://discuss.elastic.co/u/NLSVTN)\
**Post date:** [November 30, 2021, 10:42pm UTC](https://discuss.elastic.co/t/disable-doc-values-and-index-for-nested-type-fields/290609/1 "2021-11-30T22:42:40Z")

</div>

I set 'doc\_values' to 'False' on nested fields but it does not work in index creation got stuck. I wonder how to correctly disable 'doc\_values' and 'index' on 'nested' fields? Should I disable it just on the level of the 'nested' one or set each one of them individually (currently I did the latter).

---

<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:** [December 28, 2021, 10:43pm UTC](https://discuss.elastic.co/t/disable-doc-values-and-index-for-nested-type-fields/290609/2 "2021-12-28T22:43:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
