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

相关推荐
卡布叻_星星12 小时前
笔记之光盘刻录
笔记
寄思~12 小时前
Excel 数据匹配工具 -笔记
笔记·python·学习·excel
数据轨迹00113 小时前
CVPR Efficient ViM:视觉 Mamba 的轻量化
经验分享·笔记·facebook·oneapi·twitter
Elasticsearch13 小时前
Elasticsearch:Jina Reader
elasticsearch
wdfk_prog13 小时前
WIN11如何可以安装ISO
linux·笔记·学习
haokan_Jia13 小时前
【高项十大知识域-重点笔记】
笔记
Elasticsearch14 小时前
Elastic 获得 ISO 27701 认证
elasticsearch
Elasticsearch14 小时前
Elastic:DevRel 通讯 — 2026 年 1 月
elasticsearch
中屹指纹浏览器14 小时前
中屹指纹浏览器的IP-指纹协同适配技术架构与实现原理
经验分享·笔记
崎岖Qiu15 小时前
【OS笔记40】:设备管理 - 通道控制方式
笔记·操作系统·dma·os