# "index\_options"="docs" option and its relation with disk space

**URL:** https://discuss.elastic.co/t/index-options-docs-option-and-its-relation-with-disk-space/197566
**Category:** Elasticsearch
**Created:** [August 30, 2019, 6:16pm UTC](https://discuss.elastic.co/t/index-options-docs-option-and-its-relation-with-disk-space/197566 "2019-08-30T18:16:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)
#### Post date: [August 30, 2019, 6:16pm UTC](https://discuss.elastic.co/t/index-options-docs-option-and-its-relation-with-disk-space/197566/1 "2019-08-30T18:16:25Z")

</div>

Inside [Tuning for Disk Space](https://www.elastic.co/guide/en/elasticsearch/reference/current/tune-for-disk-usage.html) i have read something about index\_options parameter.

For my use case i currently have the default set. I have tried setting this parameter to "docs", which is not supposed to generate term freq and positional offsets.  
I have seen below behaviors:

1. If i check /\_termvectors for my fields after setting to "docs". I can see "term\_freq", "position", "start\_offset", "end\_offset" values are generated 🙄
2. But while searching i observe that the above parameters are not considered in calculating score. This is ok and works as expected.

**Query:**  
If all the values above are always generated (even though not used while searching), how is "docs" going to save space on disk or in memory ?

---

<div class="post-metadata">

### Author: ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)
#### Post date: [September 4, 2019, 6:37am UTC](https://discuss.elastic.co/t/index-options-docs-option-and-its-relation-with-disk-space/197566/2 "2019-09-04T06:37:05Z")

</div>

Any lead on this topic please?

---

<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: [October 2, 2019, 6:37am UTC](https://discuss.elastic.co/t/index-options-docs-option-and-its-relation-with-disk-space/197566/3 "2019-10-02T06:37:07Z")

</div>

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