是时候用 ES 拯救发际线啦

reindex时能不能只索引一个type下的数据

Elasticsearch | 作者 qqq1234567 | 发布于2018年11月22日 | 阅读数:2202

系统提示:这个人太懒了,什么问题描述都没有写!

已邀请:

rochy - rochy_he

赞同来自:

可以的,reindex 支持在索引重建的时候指定查询语句
 
POST _reindex
{
"source": {
"index": ["twitter", "blog"],
"type": ["_doc", "post"]
},
"dest": {
"index": "all_together",
"type": "_doc"
}
}

要回复问题请先登录注册