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

相关推荐
sheeta199814 小时前
LeetCode 补拙笔记 日期:2026.05.25 题目:796. 旋转字符串
笔记·算法·leetcode
leoZ23114 小时前
DeepSeek 提示词工程与落地场景实用学习笔记
笔记·学习
Lyyaoo.15 小时前
ES快速入门
大数据·elasticsearch·搜索引擎
数智工坊15 小时前
《我看见的世界:李飞飞自传》第1-6章阅读笔记:从移民少女到AI教母的“看见“之旅
人工智能·笔记
小碗羊肉15 小时前
【Agent笔记 | 第二篇】ToolCalling详解
笔记·agent·tool calling
会编程的土豆15 小时前
CORS 入门笔记(前后端跨域)
笔记
thisbrand1 天前
李辉《曾国藩日记》笔记:放不下对诗的情节
笔记·曾国藩
摇滚侠1 天前
Java 零基础全套教程,File 类与 IO 流,笔记 177-178
java·开发语言·笔记
观浩1 天前
使用Obsidian和IDEA搭建个人知识库
经验分享·笔记·学习方法
玄米乌龙茶1231 天前
LLM成长笔记(十三):系统设计与项目实战
笔记·unity·游戏引擎