Migrate ElasticSearch 8.x to OpenSearch 1.3

Hi,
I’m trying to migrate indexes from elasticsearch 8.2.0 to opensearch 1.3 (on AWS). I’m using reindex api and i’m getting following error

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

I am aware that ‘_type’ field was removed in 8.x version. Is there any possibility to migrate between these two versions I mentioned?

I tried transforming documents during the reindexing, but i’m afraid error is in reading source data.

This might work although I havent tested it: GitHub - elasticsearch-dump/elasticsearch-dump: Import and export tools for elasticsearch