# When fielddata eviction occur?

**URL:** <https://discuss.elastic.co/t/when-fielddata-eviction-occur/127044>\
**Category:** Elasticsearch\
**Created:** [April 6, 2018, 7:40am UTC](https://discuss.elastic.co/t/when-fielddata-eviction-occur/127044 "2018-04-06T07:40:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![8a98bb2968a03fe24acf](https://avatars.discourse-cdn.com/v4/letter/8/e8c25b/32.png) [@8a98bb2968a03fe24acf](https://discuss.elastic.co/u/8a98bb2968a03fe24acf)\
**Post date:** [April 6, 2018, 7:40am UTC](https://discuss.elastic.co/t/when-fielddata-eviction-occur/127044/1 "2018-04-06T07:40:13Z")

</div>

I saw that metric  
`fielddata_evictions`  
When fielddata eviction occur?

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [April 6, 2018, 9:51am UTC](https://discuss.elastic.co/t/when-fielddata-eviction-occur/127044/2 "2018-04-06T09:51:32Z")

</div>

It occurs when an index is closed, or after a merge when all segments that contributed to the merge are removed.

---

<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:** [May 4, 2018, 9:51am UTC](https://discuss.elastic.co/t/when-fielddata-eviction-occur/127044/3 "2018-05-04T09:51:52Z")

</div>

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