# What is the content of the segment file in node/0/\_state

**URL:** <https://discuss.elastic.co/t/what-is-the-content-of-the-segment-file-in-node-0-state/286698>\
**Category:** Elasticsearch\
**Created:** [October 14, 2021, 9:15am UTC](https://discuss.elastic.co/t/what-is-the-content-of-the-segment-file-in-node-0-state/286698 "2021-10-14T09:15:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![verdantyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/verdantyang/32/30330_2.png) [@verdantyang](https://discuss.elastic.co/u/verdantyang)\
**Post date:** [October 14, 2021, 9:15am UTC](https://discuss.elastic.co/t/what-is-the-content-of-the-segment-file-in-node-0-state/286698/1 "2021-10-14T09:15:46Z")

</div>

Hello,

ES 6.\* only stores .st files in the /nodes/0/\_state directory to record node status information.

But under the ES 7.12 version, I found segment-related file in /nodes/0/\_state directory, such as segment\_N and .si.

In my opinion, the segment-related files only exist in the indexes directory of the index.

I am curious about what is stored in the segment file in the /nodes/0/\_state directory,  
and which version started to introduce this design . Can someone help me with this doubt?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [October 14, 2021, 10:06am UTC](https://discuss.elastic.co/t/what-is-the-content-of-the-segment-file-in-node-0-state/286698/2 "2021-10-14T10:06:04Z")

</div>

Hi @verdantyang and welcome!

The index under `nodes/0/_state` holds the same internal information as in the `*.st` files in earlier versions, just more efficiently since it uses Lucene. This was introduced in 7.6.0.

---

<div class="post-metadata">

**Author:** ![verdantyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/verdantyang/32/30330_2.png) [@verdantyang](https://discuss.elastic.co/u/verdantyang)\
**Post date:** [October 14, 2021, 6:44pm UTC](https://discuss.elastic.co/t/what-is-the-content-of-the-segment-file-in-node-0-state/286698/3 "2021-10-14T18:44:07Z")

</div>

Thanks @DavidTurner

---

<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:** [November 11, 2021, 6:45pm UTC](https://discuss.elastic.co/t/what-is-the-content-of-the-segment-file-in-node-0-state/286698/4 "2021-11-11T18:45:02Z")

</div>

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