修改数据
POST {index}/{type}/{id}/_update?routing={routing}
{
"doc": {
"reply_count": 140
}
}
重刷数据
方法一:
POST _reindex
{
"source": {
"index": "{oldindex}"
},
"dest": {
"index": "{newindex}"
}
}
GET _tasks?detailed=true&actions=*reindex
方法二:
elasticdump --input=es:9200/{fromIndex} --output=es:9200/{toIndex} --type=data