# Index:no being ignore

**URL:** https://discuss.elastic.co/t/index-no-being-ignore/97141
**Category:** Elasticsearch
**Created:** [August 15, 2017, 5:58pm UTC](https://discuss.elastic.co/t/index-no-being-ignore/97141 "2017-08-15T17:58:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gchen](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@gchen](https://discuss.elastic.co/u/gchen)
#### Post date: [August 15, 2017, 5:58pm UTC](https://discuss.elastic.co/t/index-no-being-ignore/97141/1 "2017-08-15T17:58:04Z")

</div>

Hi,

I have a field with index option set to 'no', but ES is ignoring that option.

I updated my doc-type with :  
-XPUT my\_index/\_mapping/my\_doc\_type

```json
{
    "properties": {
        "original_data": {
            "type": "object",
            "index": "no"
        }
    }
}

```

However when i check the mapping, the following was returned by ES:

```json
{
    "original_data" : {
          "type" : "object"
    }
}

```

Why is ES ignoring the index option?

original\_data is an nested object field, and i want ES to ignore this field and don't store it at all. The field could be different for different docs, which is one of the reason why i want ES to ignore it. What's the proper way to achieve that?

Just want to mention that i'm on version 1.7, i know it's old, we're working on migrating to the newer versions.

Thanks,  
GC

---

<div class="post-metadata">

### Author: ![gchen](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@gchen](https://discuss.elastic.co/u/gchen)
#### Post date: [August 15, 2017, 6:13pm UTC](https://discuss.elastic.co/t/index-no-being-ignore/97141/2 "2017-08-15T18:13:24Z")

</div>

Ok. i got it to work by setting 'enabled': false, but a little confused.

```json
{
        "original_data": {
            "type": "object",
            "index": "no",
            "enabled": false
        }
}

```

So... does this means that index:no only controls the indexing part? Without enabled:false, ES would still parse the json and try to add it to the mapping?

---

<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: [September 12, 2017, 6:13pm UTC](https://discuss.elastic.co/t/index-no-being-ignore/97141/3 "2017-09-12T18:13:28Z")

</div>

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