# Reindex in elasticsearch 7.17 as pre-upgrade to 8.x

**URL:** <https://discuss.elastic.co/t/reindex-in-elasticsearch-7-17-as-pre-upgrade-to-8-x/344575>\
**Category:** Elasticsearch\
**Tags:** reindex\
**Created:** [October 7, 2023, 11:48pm UTC](https://discuss.elastic.co/t/reindex-in-elasticsearch-7-17-as-pre-upgrade-to-8-x/344575 "2023-10-07T23:48:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indu\_Nallithodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/indu_nallithodi/32/53063_2.png) [@Indu\_Nallithodi](https://discuss.elastic.co/u/Indu_Nallithodi)\
**Post date:** [October 7, 2023, 11:48pm UTC](https://discuss.elastic.co/t/reindex-in-elasticsearch-7-17-as-pre-upgrade-to-8-x/344575/1 "2023-10-07T23:48:24Z")

</div>

Elasticsearch team: in need of a guidancee/help

Now am in a upgrade from 6.8 to 8.x(latest)

Progress:

- Have 6.8 server with 6.8 indices(created in 5.6 and upgraded to 6.8 few years back) with multi-type
- Reindexed to single-type in 6.8- deleted 5.6 ones
- Installed 7.17 and booted success as GREEN
- as preparing to 8.x; trying reindex in 7.17 and failing (processing few 100s only from few million count) on 4 indices of 7(these 4 had multi type in 6 and changed to \_doc in 7.17 with reindex)

```auto
curl -XPOST http://server:9210/_reindex?wait_for_completion=false \
-u 'user:password' \
-H 'Content-Type: application/json' \
-d'{
  "conflicts": "proceed",
  "source": {
    "index": "reindex-6"
  },
  "dest": {
    "index": "reindex-7"
  }
}'

```

Reindex state:

- "total": 7866333,
- "updated": 833,

```auto
"failures": [

* {
  * "index": "reindex-7",
  * "type": "_doc",
  * "id": "<id>",
  * "cause": {
    * "type": "mapper_parsing_exception",
    * "reason": "failed to parse",
    * "caused_by": {
      * "type": "json_parse_exception",
      * "reason": "Duplicate field 'type' at [Source: (ByteArrayInputStream); line: 1, column: 65]"}},
  * "status": 400} 

```

How to reindex success with 7.17 index having all \_doc  
An note: Separate 8.9.1 cluster with created single-type indices(we do have 7 indices) working  
Above reindexing is for data migration of ~200GB[~90 million docs]

Regards  
Indu

---

<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:** [November 4, 2023, 11:48pm UTC](https://discuss.elastic.co/t/reindex-in-elasticsearch-7-17-as-pre-upgrade-to-8-x/344575/2 "2023-11-04T23:48:29Z")

</div>

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