更新:
POST action_log_2016/action_log_2016/201601070000000010/_update
{
"doc": {
"IDX": 201601070000000010,
"actiondetail": "for tXXXXXXXesting"
},
"doc_as_upsert": true
}
结果:
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "action_log_2016_v3",
"_type": "action_log_2016",
"_id": "201601070000000010",
"_score": 1,
"_source": {
"IDX": 201601070000000000,
"actiondetail": "for tXXXXXXXesting"
}
}
]
}
注意IDX的值自动减10,why?
POST action_log_2016/action_log_2016/201601070000000010/_update
{
"doc": {
"IDX": 201601070000000010,
"actiondetail": "for tXXXXXXXesting"
},
"doc_as_upsert": true
}
结果:
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "action_log_2016_v3",
"_type": "action_log_2016",
"_id": "201601070000000010",
"_score": 1,
"_source": {
"IDX": 201601070000000000,
"actiondetail": "for tXXXXXXXesting"
}
}
]
}
注意IDX的值自动减10,why?
1 个回复
kennywu76 - Wood
赞同来自: wokeyi 、newairisme
这个问题我在官方论坛问过,参考: https://discuss.elastic.co/t/l ... 72124