# Elastic Search Mapping does not provide index\_options and index fields

**URL:** <https://discuss.elastic.co/t/elastic-search-mapping-does-not-provide-index-options-and-index-fields/113676>\
**Category:** Elasticsearch\
**Created:** [January 1, 2018, 8:27am UTC](https://discuss.elastic.co/t/elastic-search-mapping-does-not-provide-index-options-and-index-fields/113676 "2018-01-01T08:27:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![akash](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@akash](https://discuss.elastic.co/u/akash)\
**Post date:** [January 1, 2018, 8:27am UTC](https://discuss.elastic.co/t/elastic-search-mapping-does-not-provide-index-options-and-index-fields/113676/1 "2018-01-01T08:27:30Z")

</div>

Hi,  
When we fetch the mapping of a particular elastic search index, we are not able to view below fields  
1 . index  
2. index\_option

For example we create a new index using -

PUT /testindex  
{  
"settings": {  
"index": {  
"analysis": {  
"filter": {  
"pattern\_capture": {  
"type": "pattern\_capture",  
"preserve\_original": 1,  
"patterns": [  
"([^ -]+)"  
]  
}  
},  
"analyzer": {  
"tokenized\_string": {  
"type": "custom",  
"tokenizer": "standard",  
"filter": [  
"standard",  
"pattern\_capture",  
"lowercase",  
"asciifolding",  
"stop"  
],  
"stopwords\_path": "stopwords\_en.txt"  
}  
}  
}  
}  
},  
"mappings": {  
"test": {  
"properties": {  
"actions": {  
"properties": {  
"subject": {  
"type": "string",  
"index": "analyzed",  
"analyzer": "tokenized\_string",  
"index\_options": "positions"  
}  
}  
}  
}  
}  
}  
}

Now when we try to view mapping of testindex -  
{ESURL}/testindex/\_mappings/test?pretty

Output -

{  
"testindex" : {  
"mappings" : {  
"test" : {  
"properties" : {  
"actions" : {  
"properties" : {  
"subject" : {  
"type" : "string",  
"analyzer" : "tokenized\_string"  
}  
}  
}  
}  
}  
}  
}  
}

Below 2 fields are missing -

```
          "index": "analyzed",
          "index_options": "positions"

```

Kindly provide your inputs on this ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 1, 2018, 8:55am UTC](https://discuss.elastic.co/t/elastic-search-mapping-does-not-provide-index-options-and-index-fields/113676/2 "2018-01-01T08:55:12Z")

</div>

What version are you running?

---

<div class="post-metadata">

**Author:** ![akash](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@akash](https://discuss.elastic.co/u/akash)\
**Post date:** [January 1, 2018, 9:13am UTC](https://discuss.elastic.co/t/elastic-search-mapping-does-not-provide-index-options-and-index-fields/113676/3 "2018-01-01T09:13:45Z")

</div>

Hi,

ES Version is 2.4.2.

---

<div class="post-metadata">

**Author:** ![akash](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@akash](https://discuss.elastic.co/u/akash)\
**Post date:** [January 3, 2018, 6:59am UTC](https://discuss.elastic.co/t/elastic-search-mapping-does-not-provide-index-options-and-index-fields/113676/4 "2018-01-03T06:59:58Z")

</div>

Hi,

Any update on this ?

---

<div class="post-metadata">

**Author:** ![akash](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@akash](https://discuss.elastic.co/u/akash)\
**Post date:** [January 3, 2018, 9:46am UTC](https://discuss.elastic.co/t/elastic-search-mapping-does-not-provide-index-options-and-index-fields/113676/5 "2018-01-03T09:46:31Z")

</div>

Another observation -  
"mappings" : {  
"something" : {  
"\_source": {"enabled":true},

Here \_source does not come in the mapping view.

---

<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:** [January 31, 2018, 9:52am UTC](https://discuss.elastic.co/t/elastic-search-mapping-does-not-provide-index-options-and-index-fields/113676/6 "2018-01-31T09:52:35Z")

</div>

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