# \_split index API issues

**URL:** https://discuss.elastic.co/t/split-index-api-issues/304551
**Category:** Elasticsearch
**Created:** [May 12, 2022, 10:15am UTC](https://discuss.elastic.co/t/split-index-api-issues/304551 "2022-05-12T10:15:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nishad\_Angre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nishad_angre/32/83788_2.png) [@Nishad\_Angre](https://discuss.elastic.co/u/Nishad_Angre)
#### Post date: [May 12, 2022, 10:15am UTC](https://discuss.elastic.co/t/split-index-api-issues/304551/1 "2022-05-12T10:15:57Z")

</div>

Hi,

I have done a split index query on one of the filebeat indices.  
What I observe is, as the documentation mentions ([Split index API | Elasticsearch Guide [8.2] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-split-index.html#how-split-works)) once the documents are copied into another shard of destination index, the source documents are deleted. But in my case that has not happened. Any idea why that might be so?

My index details  
source index:  
name - filebeat-7.17.3-2022.05.11-000001  
replicas - 1  
shards - 3  
documents - 81013018  
size - 63.9gb

destination index  
name filebeat-7.17.3-2022.05.11-000001\_1  
replicas - 1  
shards - 3  
documents - 81013018  
size - 63.9gb

If you can see here, source and destination indices are of same size and configuration.

API call that I did:

```auto
PUT /filebeat-7.17.3-2022.05.11-000001/_settings
{
  "settings": {
    "index.blocks.write": true
  }
}
POST /filebeat-7.17.3-2022.05.11-000001/_split/filebeat-7.17.3-2022.05.11-000001_1
{
  "settings": {
    "index.number_of_shards": 3
  }
}

```

---

<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 16, 2022, 12:32am UTC](https://discuss.elastic.co/t/split-index-api-issues/304551/2 "2022-05-16T00:32:27Z")

</div>

The docs say;

> 1. Hashes all documents again, after low level files are created, **to delete documents that belong to a different shard**.

It does delete the original index, that's something you need to request.

---

<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 13, 2022, 12:33am UTC](https://discuss.elastic.co/t/split-index-api-issues/304551/3 "2022-06-13T00:33:07Z")

</div>

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