# Elasticsearch delete docs during the indexations

**URL:** <https://discuss.elastic.co/t/elasticsearch-delete-docs-during-the-indexations/338674>\
**Category:** Elasticsearch\
**Created:** [July 18, 2023, 12:29pm UTC](https://discuss.elastic.co/t/elasticsearch-delete-docs-during-the-indexations/338674 "2023-07-18T12:29:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![atombrownbear](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atombrownbear/32/123586_2.png) [@atombrownbear](https://discuss.elastic.co/u/atombrownbear)\
**Post date:** [July 18, 2023, 12:29pm UTC](https://discuss.elastic.co/t/elasticsearch-delete-docs-during-the-indexations/338674/1 "2023-07-18T12:29:10Z")

</div>

Hi all! When im do indexation, my backend app sends 1234 pages (for example). if I call /stats? by curl I will see that 1234 pages have been indexed and 234 pages have been deleted, although they should not be deleted. why can this happen?

Всем привет! Когда я делаю индексацию с помощью бэка, он отправляет, например, 1234 страницы на индексацию. Когда вызываю /stats? через curl я вижу, что проиндексировано 1234 страницы, но 234 удалены, хотя не должны быть удалены. Почему так происходит?

back: java+Spring Data Elastic

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 18, 2023, 9:53pm UTC](https://discuss.elastic.co/t/elasticsearch-delete-docs-during-the-indexations/338674/2 "2023-07-18T21:53:06Z")

</div>

Welcome!

Mostly because of updates. An update is a delete plus an insert.

---

<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:** [August 15, 2023, 9:53pm UTC](https://discuss.elastic.co/t/elasticsearch-delete-docs-during-the-indexations/338674/3 "2023-08-15T21:53:08Z")

</div>

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