# “docs\_value” is not enabled?

**URL:** <https://discuss.elastic.co/t/docs-value-is-not-enabled/38308>\
**Category:** Elasticsearch\
**Created:** [January 4, 2016, 11:53am UTC](https://discuss.elastic.co/t/docs-value-is-not-enabled/38308 "2016-01-04T11:53:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sundar\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sundar_v/32/6928_2.png) [@Sundar\_V](https://discuss.elastic.co/u/Sundar_V)\
**Post date:** [January 4, 2016, 11:53am UTC](https://discuss.elastic.co/t/docs-value-is-not-enabled/38308/1 "2016-01-04T11:53:46Z")

</div>

After I enabled "doc\_values":true, I do not see it in the response of GET.

DELETE /music  
PUT /music  
PUT /music/\_mapping/song  
{  
"properties" : {  
"tag": {  
"type": "string",  
"index" : "not\_analyzed",  
"doc\_values": true  
}  
}  
}  
GET /music/\_mapping  
{  
"music": {  
"mappings": {  
"song": {  
"properties": {  
"tag": {  
"type": "string",  
"index": "not\_analyzed"  
}  
}  
}  
}  
}  
}

I was expecting to see the doc\_values true to be set in the response. Am I missing something here.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [January 4, 2016, 10:48pm UTC](https://discuss.elastic.co/t/docs-value-is-not-enabled/38308/2 "2016-01-04T22:48:49Z")

</div>

Hi Sundar,

the information that you want to use doc values for this field is still there. It is just that you have to use the [get field mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html) for that:

```auto
GET /music/_mapping/song/field/tag?include_defaults=true

```

```auto
{
   "music": {
      "mappings": {
         "song": {
            "tag": {
               "full_name": "tag",
               "mapping": {
                  "tag": {
                     "type": "string",
                     "boost": 1,
                     "index": "not_analyzed",
                     "store": false,
                     "doc_values": true,
                     "term_vector": "no",
                     "norms": {
                        "enabled": false
                     },
                     "index_options": "docs",
                     "analyzer": "_keyword",
                     "search_analyzer": "_keyword",
                     "similarity": "default",
                     "fielddata": {},
                     "null_value": null,
                     "include_in_all": false,
                     "position_increment_gap": -1,
                     "search_quote_analyzer": "_keyword",
                     "ignore_above": -1
                  }
               }
            }
         }
      }
   }
}

```

There you can see that `doc_values` is `true`.

Daniel

---

<div class="post-metadata">

**Author:** ![Sundar\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sundar_v/32/6928_2.png) [@Sundar\_V](https://discuss.elastic.co/u/Sundar_V)\
**Post date:** [January 6, 2016, 1:02pm UTC](https://discuss.elastic.co/t/docs-value-is-not-enabled/38308/3 "2016-01-06T13:02:13Z")

</div>

Thanks for the clarification.

---

<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 5, 2017, 11:26pm UTC](https://discuss.elastic.co/t/docs-value-is-not-enabled/38308/4 "2017-07-05T23:26:44Z")

</div>


