笔记:remote reindex无法从ES7-->ES6

背景

测试经常使用reindex API,一般都是同版本或者升级版本使用;

使用

remote reindex

复制代码
POST _reindex
{
  "conflicts": "proceed",
  "source": {
    "remote": {
      "host": "http://xxx.com:80",
      "username": "elastic",
      "password": "xxxxx",
      "headers": {
        "x-client-app": "12345"
      }
    },
    "index": "test",
    "size": 1000,
    "query": {
      "match_all": {}
    }
  },
  "dest": {
    "index": "test"
  }
}

发现报错

复制代码
{
  "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:242] [search_response] failed to parse field [hits]",
      "caused_by": {
        "type": "x_content_parse_exception",
        "reason": "[1:242] [hits] total doesn't support values of type: START_OBJECT"
      }
    }
  },
  "status": 500
}

原因:remote reindex无法从ES7同步数据到ES6(不能降级)

相关推荐
玩具猴_wjh2 小时前
12.9 学习笔记
笔记·学习
不会代码的小猴8 小时前
C++的第九天笔记
开发语言·c++·笔记
我命由我123459 小时前
开发中的英语积累 P19:Inspect、Hint、Feedback、Direction、Compact、Vulnerability
经验分享·笔记·学习·职场和发展·求职招聘·职场发展·学习方法
老王熬夜敲代码11 小时前
C++中的thread
c++·笔记·面试
崇山峻岭之间11 小时前
C++ Prime Plus 学习笔记033
c++·笔记·学习
暗然而日章12 小时前
C++基础:Stanford CS106L学习笔记 7 类
c++·笔记·学习
思成不止于此12 小时前
【MySQL 零基础入门】DDL 核心语法全解析:数据库与表结构操作篇
数据库·笔记·学习·mysql
lkbhua莱克瓦2412 小时前
Java进阶——IO流
java·开发语言·笔记·学习方法·io流
浦东新村轱天乐12 小时前
2025.12.01-2025.12.07:休假回来,开始迭代vlm
笔记
im_AMBER12 小时前
Leetcode 72 数组列表中的最大距离
c++·笔记·学习·算法·leetcode