Rollover Index
as
i use this to rollover index
curl -XPOST "http://xx.xx.xx.xx:9200/zqctest/_rollover?wait_for_active_shards=2&pretty" -H 'Content-Type: application/json' -d'
{
"conditions": {
"max_docs": 5
}
}
'
{
"old_index" : "zqctest-2018.09.04-1",
"new_index" : "zqctest-2018.09.04-000002",
"rolled_over" : true,
"dry_run" : false,
"acknowledged" : true,
"shards_acknowledged" : true,
"conditions" : {
"[max_docs: 5]" : true
}
}
the only create index but the index fileds don't remove
see in cererebo
need wating for a day?
or only create new index.