POST _reindex?wait_for_completion=false // async call - you can track query progress if your index is huge - do GET _tasks/{your taskId}
{
"source": {
"index": *source index name*
},
"dest": {
"index": *destination index name*
},
"script": {
"source": """
ctx._routing = ctx._source.field1+'-'+ctx._source.field2;
"""
}
}
2条答案
按热度按时间5t7ly7z51#
一个简单的无痛和ElasticSearch的reindex API的组合可以用来实现这一点。
5gfr0r5j2#
允许创建最新查询