修改重新索引上下文中的值 w/painless 更新源文档和目标文档,还是仅更新目标文档?

Does modifying a value in Reindexing context w/ painless update both source and destination documents, or just destination?

如果我运行这个命令还会修改源索引中文档的路由值,还是只修改目标索引中的路由值?谢谢

POST _reindex
{
  "source": {
    "index": "{old_index_name}",
    "size": {batch_size}
  },
  "dest": {
    "index": "{new_index_name}"
  },
  "script": {
    "lang": "painless",
    "inline": "ctx._routing=ctx._source.field1"
  }
}

只会修改目标文档。

源索引中的那个将保持不变。