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

相关推荐
栈溢出了1 分钟前
PyTorch 中 unfold 的理解笔记
人工智能·pytorch·笔记
智者知已应修善业11 分钟前
【51单片机0.1秒计时到21.0时点亮LED】2024-1-5
c++·经验分享·笔记·算法·51单片机
AeeeSs12 分钟前
web shell
笔记
汪小哥18 分钟前
Elasticsearch Preference + Slice 加速查询实战案例
elasticsearch
虎符饼干24 分钟前
从选词到布局优化,实现搜索引擎自然排名上涨
笔记
是上好佳佳佳呀35 分钟前
【数据分析|DAY01】Series 和 DataFrame 笔记
笔记·数据分析
XS03010637 分钟前
计算机系统层次结构笔记
笔记·硬件工程
SHARK_pssm44 分钟前
【数据结构——单链表】
数据结构·经验分享·笔记
数智工坊1 小时前
周志华《Machine Learning》学习笔记--第十一章--特征学习与稀疏学习
笔记·学习·机器学习
喵叔哟1 小时前
第2周学习笔记
笔记·python·学习·langchain