# Per-field metadata vs index-wide metadata rationale

**URL:** <https://discuss.elastic.co/t/per-field-metadata-vs-index-wide-metadata-rationale/223162>\
**Category:** Elasticsearch\
**Created:** [March 11, 2020, 2:46pm UTC](https://discuss.elastic.co/t/per-field-metadata-vs-index-wide-metadata-rationale/223162 "2020-03-11T14:46:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xAlex](https://avatars.discourse-cdn.com/v4/letter/x/49beb7/32.png) [@xAlex](https://discuss.elastic.co/u/xAlex)\
**Post date:** [March 11, 2020, 2:46pm UTC](https://discuss.elastic.co/t/per-field-metadata-vs-index-wide-metadata-rationale/223162/1 "2020-03-11T14:46:23Z")

</div>

**Background**

In 7.6 the following PR was merged: [https://github.com/elastic/elasticsearch/pull/49419](https://github.com/elastic/elasticsearch/pull/49419).

The PR added the possibility to have per-field metadata limited to five string fields with 20 character keys and 50 character values. The rationale was that this was enough for any use case and that it would not "bloat the cluster state".

There have for some time been a per-index field, "\_meta" which Elasticsearch does not use - it's only for application data.

**Question**

How is the data in the "\_meta" field stored which allows it to serve virtually any data? Why does it not have the same restrictions as the per-field "meta" field?

---

<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 8, 2020, 2:46pm UTC](https://discuss.elastic.co/t/per-field-metadata-vs-index-wide-metadata-rationale/223162/2 "2020-04-08T14:46:32Z")

</div>

Closed on April 8, 2020, 2:46pm UTC

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