# Setting indices.id\_field\_data.enabled for index instead of cluster

**URL:** <https://discuss.elastic.co/t/setting-indices-id-field-data-enabled-for-index-instead-of-cluster/268003>\
**Category:** Elasticsearch\
**Created:** [March 22, 2021, 6:16pm UTC](https://discuss.elastic.co/t/setting-indices-id-field-data-enabled-for-index-instead-of-cluster/268003 "2021-03-22T18:16:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanziee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seanziee/32/45151_2.png) [@seanziee](https://discuss.elastic.co/u/seanziee)\
**Post date:** [March 22, 2021, 6:16pm UTC](https://discuss.elastic.co/t/setting-indices-id-field-data-enabled-for-index-instead-of-cluster/268003/1 "2021-03-22T18:16:27Z")

</div>

This setting has been great to be able to change because many problems can come up from aggregating on the \_id field. However, I want to be able to control this setting for a specific index, rather than the whole cluster. Is that possible?

I have a small .ml-anomalies\* index that I want to be able to uniquely identify a document in a script, but I'm unable to only open up this possibility for this index and not the other indices.

---

<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 19, 2021, 6:17pm UTC](https://discuss.elastic.co/t/setting-indices-id-field-data-enabled-for-index-instead-of-cluster/268003/2 "2021-04-19T18:17:18Z")

</div>

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