# Is it possible to annotate an index with custom properties

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-annotate-an-index-with-custom-properties/171829>\
**Category:** Elasticsearch\
**Created:** [March 11, 2019, 7:27pm UTC](https://discuss.elastic.co/t/is-it-possible-to-annotate-an-index-with-custom-properties/171829 "2019-03-11T19:27:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anew](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@anew](https://discuss.elastic.co/u/anew)\
**Post date:** [March 11, 2019, 7:27pm UTC](https://discuss.elastic.co/t/is-it-possible-to-annotate-an-index-with-custom-properties/171829/1 "2019-03-11T19:27:36Z")

</div>

Hello,

I am experimenting with index settings and mappings, and I would would like to know whether it is possible to store in the index settings, which version of the mappings are used in this particular index. This would also be useful when mappings evolve in the future - I would like to be able to know what version of settings an index was created with.

I tried adding a custom setting when creating the index:

```
{
    "analysis": {
        ...
    },
    "custom": {
        "version": "1.0.1"
    },
    "index": {
        "number_of_replicas": 1,
        ...
    }
}

```

but Elasticsearch rejects those settings with

```
ElasticsearchStatusException[Elasticsearch exception [type=illegal_argument_exception, reason=unknown setting [index.custom.version] please check that any required plugins are installed, or check the breaking changes documentation for removed settings]

```

]

Is there any way to add custom settings, or a custom section in the settings, that will be ignored by Elastic, but can be retrieved as part of the index settings?

Thanks -Andreas

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [March 12, 2019, 3:39am UTC](https://discuss.elastic.co/t/is-it-possible-to-annotate-an-index-with-custom-properties/171829/2 "2019-03-12T03:39:44Z")

</div>

You can put custom meta data on the mapping for the index

- [https://www.elastic.co/guide/en/elasticsearch/reference/6.6/mapping-meta-field.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/mapping-meta-field.html)

---

<div class="post-metadata">

**Author:** ![anew](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@anew](https://discuss.elastic.co/u/anew)\
**Post date:** [March 12, 2019, 4:50am UTC](https://discuss.elastic.co/t/is-it-possible-to-annotate-an-index-with-custom-properties/171829/3 "2019-03-12T04:50:28Z")

</div>

That is exactly what I was looking for. Works like a charm.  
Thanks!

---

<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:** [April 9, 2019, 4:50am UTC](https://discuss.elastic.co/t/is-it-possible-to-annotate-an-index-with-custom-properties/171829/4 "2019-04-09T04:50:38Z")

</div>

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