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

相关推荐
宵时待雨9 分钟前
C++笔记归纳17:哈希
数据结构·c++·笔记·算法·哈希算法
山川行20 分钟前
Python快速闯关8:内置函数
java·开发语言·前端·笔记·python·学习·visual studio
鸟电波1 小时前
硬件笔记——立创EDA的模块复用
笔记
今儿敲了吗1 小时前
算法复盘——前缀和
笔记·学习·算法
Elasticsearch1 小时前
Elasticsearch:如何在 Elastic AI Builder 里使用 DSL 来查询 Elasticsearch
elasticsearch
啊我不会诶2 小时前
最小生成树
c++·笔记·学习·算法
老虎06272 小时前
LeetCode热题100 刷题笔记(第三天)链表 「两数相加」
笔记·leetcode·链表
笑鸿的学习笔记2 小时前
git笔记之--abort和--quit参数详解
笔记·git
Z.风止2 小时前
Large Model-learning(1)
开发语言·笔记·git·python·学习
لا معنى له3 小时前
综述翻译:Embodied Science: Closing the Discovery Loop withAgentic Embodied AI
人工智能·笔记·学习