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

相关推荐
sheeta19983 分钟前
LeetCode 每日一题笔记 日期:2026.04.22 题目:2452. 距离字典两次编辑以内的单词
笔记·算法·leetcode
Strugglingler9 分钟前
Linux Device Drivers-第六章 高级字符驱动操作
linux·笔记
轻赚时代11 分钟前
音视频 + 图像处理一站式工具箱:AI 辅助高效处理教程
人工智能·经验分享·笔记·创业创新·课程设计
somi727 分钟前
ARM-10-SQLite3 库移植笔记
jvm·笔记·sqlite
噜噜噜阿鲁~36 分钟前
python学习笔记 | 6.3、函数-函数的参数
笔记·python·学习
xiaokangzhe42 分钟前
GluserFS笔记
笔记
Elastic 中国社区官方博客1 小时前
自动化可靠性:自愈型企业的架构
运维·elasticsearch·搜索引擎·云原生·架构·自动化·serverless
wwddgod1 小时前
STM32L071 串口唤醒stop低功耗模式笔记
笔记·stm32·单片机·低功耗·串口唤醒
Wyawsl1 小时前
GFS分布式文件系统笔记
笔记
ldj20201 小时前
Filebeat 采集数据到Elasticsearch
elasticsearch·filebeat