# Reindex is failing slice option

**URL:** <https://discuss.elastic.co/t/reindex-is-failing-slice-option/302293>\
**Category:** Elasticsearch\
**Tags:** reindex\
**Created:** [April 13, 2022, 6:25am UTC](https://discuss.elastic.co/t/reindex-is-failing-slice-option/302293 "2022-04-13T06:25:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreekanth](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreekanth](https://discuss.elastic.co/u/sreekanth)\
**Post date:** [April 13, 2022, 6:25am UTC](https://discuss.elastic.co/t/reindex-is-failing-slice-option/302293/1 "2022-04-13T06:25:06Z")

</div>

We have an index with 28 shards. Reindex is failing when we use the slice option as below.

```auto
POST https://localhost:9200/_reindex?wait_for_completion=false&slices=10
{"source":{ "index": "OldIndex"},"dest":{ "index": "newIndex" }}

```

**Error:**  
Under failures, we see a lot of errors as below

```auto
     {
        "shard" : -1,
        "reason" : {
          "type" : "search_context_missing_exception",
          "reason" : "No search context found for id [362565]"
        }
      },

```

Out of 2294306 docs, 2293280 docs reindexed and around 1026 docs missing.

**Things tried and still not working**

- Slice set to 10 , 5, 4
- added size option and set to 100

---

<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 11, 2022, 6:25am UTC](https://discuss.elastic.co/t/reindex-is-failing-slice-option/302293/2 "2022-05-11T06:25:36Z")

</div>

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