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

相关推荐
Chockmans6 小时前
春秋云境CVE-2023-51385(保姆级教学)
大数据·web安全·elasticsearch·搜索引擎·网络安全·春秋云境·cve-2023-51385
He BianGu6 小时前
【笔记】WPF中 Brush 的类型、继承关系、使用方式和注意事项
笔记·wpf
阿米亚波7 小时前
【C++ STL】std::forward_list
开发语言·c++·笔记·stl·visual studio·forward_list
Elasticsearch7 小时前
一张图片胜过 1.5 倍的文字:我们从产品搜索 embeddings 基准测试中学到了什么
elasticsearch
Z5998178417 小时前
c#软件开发学习笔记--事务、索引
笔记·学习·c#
宵时待雨7 小时前
linux笔记归纳9:进程间通信
linux·服务器·笔记
疯狂打码的少年8 小时前
【软件工程】结构化设计:结构化设计方法(SC图)
笔记·软件工程
十月的皮皮8 小时前
C语言学习笔记20260716-编译与链接
c语言·笔记·学习
影视飓风TIM8 小时前
Linux基础入门笔记:命令、内核架构与压缩传输全梳理
linux·笔记·架构
干了这杯柠檬多17 小时前
Elasticsearch 深度分页:Scroll vs PIT + search_after
elasticsearch