小编kfo*_*fox的帖子

Elasticsearch reindex api 复制后删除文档

我已经浏览了 _reindex api 文档几次,但无法确定是否可行。将文档从源索引复制到目标索引后,是否还可以删除源文档?

这是我正在调用的当前 _reindex api 调用主体:

{
  "source": {
    "index": "srcindex",
    "type": "type",
    "query": {
      "range": {
        "date": {
          "from": <timestamp>
        }
      }
    }
  },
  "dest": {
    "index": "dstindex",
    "type": "type"
  }
}
Run Code Online (Sandbox Code Playgroud)

elasticsearch

5
推荐指数
1
解决办法
4074
查看次数

标签 统计

elasticsearch ×1