# Object mapping and "index" : "no" in ES 2.0

**URL:** https://discuss.elastic.co/t/object-mapping-and-index-no-in-es-2-0/34345
**Category:** Elasticsearch
**Created:** [November 11, 2015, 5:56pm UTC](https://discuss.elastic.co/t/object-mapping-and-index-no-in-es-2-0/34345 "2015-11-11T17:56:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cching](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cching/32/44800_2.png) [@cching](https://discuss.elastic.co/u/cching)
#### Post date: [November 11, 2015, 5:56pm UTC](https://discuss.elastic.co/t/object-mapping-and-index-no-in-es-2-0/34345/1 "2015-11-11T17:56:10Z")

</div>

ES 2.0, I'm working with a mapping that contains:

```
"collectors" : {
    "type" : "object",
    "index" : "no"
},

```

and I'm getting the following error:

```
Mapping definition for [collectors] has unsupported parameters: [index : no]

```

Is that right? If I change the type to "string" it works, is that the way I should do this?

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [November 11, 2015, 8:33pm UTC](https://discuss.elastic.co/t/object-mapping-and-index-no-in-es-2-0/34345/2 "2015-11-11T20:33:09Z")

</div>

Judging by [https://www.elastic.co/guide/en/elasticsearch/reference/2.0/object.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.0/object.html) the `index` parameter isn't valid for object fields. I guess objects are just containers of other fields so indexed or non-indexed doesn't really apply.

---

<div class="post-metadata">

### Author: ![cching](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cching/32/44800_2.png) [@cching](https://discuss.elastic.co/u/cching)
#### Post date: [November 11, 2015, 8:38pm UTC](https://discuss.elastic.co/t/object-mapping-and-index-no-in-es-2-0/34345/3 "2015-11-11T20:38:34Z")

</div>

> [@magnusbaeck](#):
>
> [Object datatype | Elasticsearch Guide [2.0] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/2.0/object.html)

Thanks Magnus! I guess I'll just remove the "index" : "no" and see if it actually is indexed or not.

Cheers!

---

<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:39pm UTC](https://discuss.elastic.co/t/object-mapping-and-index-no-in-es-2-0/34345/4 "2017-07-05T23:39:07Z")

</div>


