笔记: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(不能降级)

相关推荐
沪飘大军几秒前
goldRush-专门分析黄金的投资理财agent
java·开发语言·elasticsearch
中屹指纹浏览器29 分钟前
2026指纹浏览器字体指纹、字体渲染偏差检测与全维度虚拟字体池搭建方案
经验分享·笔记
codexu_4612291871 小时前
NoteGen 里一条记录如何变成 Markdown
前端·笔记·rust·tauri
Upsy-Daisy1 小时前
Hermes Agent 学习笔记 10:源码结构与整体架构总结,Hermes 到底是如何运转起来的?
笔记·学习·架构
让学习成为一种生活方式1 小时前
samblaster v.0.1.26安装与使用--生信工具096
大数据·elasticsearch·搜索引擎
Upsy-Daisy2 小时前
Hermes Agent 学习笔记 09:MCP 集成,让 Agent 连接外部工具生态
笔记·学习
小马爱打代码2 小时前
Elasticsearch 容器化部署(单机版):从零搭建你的搜索和分析引擎
elasticsearch
自小吃多2 小时前
IVD设备-以GB4793.1做安规摸底
笔记·嵌入式硬件
西敏寺的乐章2 小时前
排序三阶段:粗排→精排→重排,把业务信号灌进 ES 排序管道
elasticsearch·搜索引擎