# Doc values are not enabled by default

**URL:** <https://discuss.elastic.co/t/doc-values-are-not-enabled-by-default/67814>\
**Category:** Elasticsearch\
**Created:** [December 1, 2016, 11:00pm UTC](https://discuss.elastic.co/t/doc-values-are-not-enabled-by-default/67814 "2016-12-01T23:00:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jspooner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jspooner/32/12984_2.png) [@jspooner](https://discuss.elastic.co/u/jspooner)\
**Post date:** [December 1, 2016, 11:00pm UTC](https://discuss.elastic.co/t/doc-values-are-not-enabled-by-default/67814/1 "2016-12-01T23:00:18Z")

</div>

The [deep dive on doc values](https://www.elastic.co/guide/en/elasticsearch/guide/current/_deep_dive_on_doc_values.html) article says that

> "Doc values are enabled by default for all fields except analyzed strings"

However, when looking at the field data usage I'm seeing fields that are set to "not\_analyzed" consuming field data memory.

```
GET /_stats/fielddata?fields=*
"gh9": {
    "memory_size_in_bytes": 601821608
},

```

My template

```
"gh9": {
     "index": "not_analyzed",
     "type": "string"
}

```

Our Elasticsearch version is 2.4.1.

Do you know why it appears that this **non\_analyzed** string is consuming field\_data memory?

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [December 2, 2016, 8:46am UTC](https://discuss.elastic.co/t/doc-values-are-not-enabled-by-default/67814/2 "2016-12-02T08:46:25Z")

</div>

see here: [Not\_analyzed field with doc\_values still in fielddata cache](https://discuss.elastic.co/t/not-analyzed-field-with-doc-values-still-in-fielddata-cache/26298)

---

<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 30, 2016, 8:46am UTC](https://discuss.elastic.co/t/doc-values-are-not-enabled-by-default/67814/3 "2016-12-30T08:46:35Z")

</div>

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