I was reindexing one index but while using the reindex api the size of the previous index and new index is not same.
source index
GET /_cat/indices/log-test1?v&pretty
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open log-test1 2ZSW9EdnT2SJwxSCFmk64g 1 1 20920610 0 16.4gb 8.2gb
destination
GET /_cat/indices/log-test-1-2021.05.22-000001?v&pretty
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open log-test-1-2021.05.22-000001 EBVL_urcSfC6XgnUG0CFNQ 1 1 6772999 0 4.9gb 2.4gb
The command i run
POST _reindex?wait_for_completion=true
{
"source": {
"index": "log-test1"
},
"dest": {
"index": "log-test-1-2021.05.22-000001"
}
}
to check its status
GET _tasks?actions=*reindex
and the output is
{
"nodes" : { }
}