Reindex from remote. From v8.5.1 to v7.17.1 error

I am trying to reindex from the remote server. The source version is 8.5.1 and the dest version is 7.17.1. I got the error below. Please help me explain this error and how to solve it.

{
  "error": {
    "root_cause": [
      {
        "type": "exception",
        "reason": "Error parsing the response, remote is likely not an Elasticsearch instance"
      }
    ],
    "type": "exception",
    "reason": "Error parsing the response, remote is likely not an Elasticsearch instance",
    "caused_by": {
      "type": "x_content_parse_exception",
      "reason": "[1:2013] [search_response] failed to parse field [hits]",
      "caused_by": {
        "type": "x_content_parse_exception",
        "reason": "[1:2013] [hits] failed to parse field [hits]",
        "caused_by": {
          "type": "illegal_argument_exception",
          "reason": "Required [_type]"
        }
      }
    }
  },
  "status": 500
}

Welcome!

Why 7.17.1. It's not the latest 7.17 version.
Could you upgrade and check again?

The error message indicates that the field _type is missing. Which is true as this does not exist anymore in 8.x versions.

If you can't make it work with a more 7.17 version, may be use something like Logstash to do your reindex.

BTW, why downgrading?

1 Like

The reindex from remote docs say:

Elasticsearch does not support forward compatibility across major versions. For example, you cannot reindex from a 7.x cluster into a 6.x cluster.

1 Like

I knew it: I SHOULD READ THE DOC! :rofl:

1 Like

You are correct. I checked it again, the field _type does not exist in v8.
Let me try with Logstash.

"why downgrading?" => This is not downgrading, I just want to migrate some index to another cluster.

I'd upgrade the cluster.

1 Like