# About the use of metadata in elastic search

**URL:** <https://discuss.elastic.co/t/about-the-use-of-metadata-in-elastic-search/305057>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [May 18, 2022, 11:58am UTC](https://discuss.elastic.co/t/about-the-use-of-metadata-in-elastic-search/305057 "2022-05-18T11:58:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xingzhao](https://avatars.discourse-cdn.com/v4/letter/x/258eb7/32.png) [@xingzhao](https://discuss.elastic.co/u/xingzhao)\
**Post date:** [May 18, 2022, 11:58am UTC](https://discuss.elastic.co/t/about-the-use-of-metadata-in-elastic-search/305057/1 "2022-05-18T11:58:23Z")

</div>

I would like to ask how the metadata data structure in Elasticsearch is used when executing various apis. Will a copy of the metadata be saved at the beginning of each call to the api? Or can you provide an entry to the api? I can't find the entry point for the api call by myself.

---

<div class="post-metadata">

**Author:** ![xingzhao](https://avatars.discourse-cdn.com/v4/letter/x/258eb7/32.png) [@xingzhao](https://discuss.elastic.co/u/xingzhao)\
**Post date:** [May 18, 2022, 1:25pm UTC](https://discuss.elastic.co/t/about-the-use-of-metadata-in-elastic-search/305057/2 "2022-05-18T13:25:48Z")

</div>

Because when the api is called, the metadata should always remain unchanged, which involves the problem of atomicity. So I want to know if the metadata will save a backup at the beginning of the api call.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 19, 2022, 4:24am UTC](https://discuss.elastic.co/t/about-the-use-of-metadata-in-elastic-search/305057/3 "2022-05-19T04:24:47Z")

</div>

It's not clear what metadata you are referring to here.

---

<div class="post-metadata">

**Author:** ![xingzhao](https://avatars.discourse-cdn.com/v4/letter/x/258eb7/32.png) [@xingzhao](https://discuss.elastic.co/u/xingzhao)\
**Post date:** [May 19, 2022, 6:34am UTC](https://discuss.elastic.co/t/about-the-use-of-metadata-in-elastic-search/305057/4 "2022-05-19T06:34:04Z")

</div>

sorry for that, I mean aliasmetadata

---

<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:** [June 16, 2022, 6:34am UTC](https://discuss.elastic.co/t/about-the-use-of-metadata-in-elastic-search/305057/5 "2022-06-16T06:34:38Z")

</div>

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