I have an existing index named "prod.custom.historical.actions-2021-03" and created new index named "PUT /prod.custom.historical.actions-2021-04-19"
Executed below commands in the same order. PUT /prod.custom.historical.actions-2021-04-19
POST _reindex
{
"source": {
"index": "prod.custom.historical.tasks-2021-03"
},
"dest": {
"index": "prod.custom.historical.tasks-2021-04-19"
}
}
GET /prod.custom.historical.actions-2021-03/_search
{
"query": {
"bool": {
"must": [
{
"terms": {
"projectId": [
"73ef9fa8-6665-4cbb-881c-4663030a7d45"
]
}
}
]
}
}
}
returns
"took" : 5,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 93,
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [
GET /prod.custom.historical.actions-2021-04-19/_search
{
"query": {
"bool": {
"must": [
{
"terms": {
"projectId": [
"73ef9fa8-6665-4cbb-881c-4663030a7d45"
]
}
}
]
}
}
}
returns
{
"took" : 0,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 0,
"relation" : "eq"
},
"max_score" : null,
"hits" : [ ]
}
}
Which clearly indicates that there are missing documents, someone can please help me to understand the issue here.