# Lucene index corruption

**URL:** <https://discourse.hibernate.org/t/lucene-index-corruption/2585>\
**Category:** Hibernate Search\
**Created:** [April 9, 2019, 9:57pm UTC](https://discourse.hibernate.org/t/lucene-index-corruption/2585 "2019-04-09T21:57:01Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![yrodiere](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/yrodiere/32/1760_2.png) [@yrodiere](https://discourse.hibernate.org/u/yrodiere)\
**Post date:** [May 2, 2019, 10:14am UTC](https://discourse.hibernate.org/t/lucene-index-corruption/2585/8 "2019-05-02T10:14:22Z")

</div>

Exactly.

Just a snag: if you don’t restart the app, and simply stop writing to the index, then resume afterwards, you will need to make sure that Hibernate Search correctly flushes everything to the index before you start reindexing. That was the point of the `flushAndReleaseResources` call I mentioned in [my answer to your other post](https://discourse.hibernate.org/t/re-indexing-and-overwriting-index-folder-causes-errors/2419/2).

---

_[View the full topic](https://discourse.hibernate.org/t/lucene-index-corruption/2585)._
