Hello,
Is it possible to reindex a corrupted index into a new copy accepting some data loss?
I am trying to reindex a corrupted index with the following call:
POST _reindex
{
"source": {
"index": "index001"
},
"dest": {
"index": "index001-copy"
}
}
However, when I do so, I receive the following error message:
Search rejected due to missing shards [[index001][1]]. Consider using 'allow_partial_search_results' setting to bypass this error.
_reindex call doesnt accept the setting allow_partial_search_results
so I tried to setup the cluster with a default value which didn't help either as it keeps showing the same reindex error message, the default cluster setting I modified is:
PUT _cluster/settings
{
"persistent" : {
"search.default_allow_partial_results" : true
}
}
The primary shard has a replica shard that hasn't been assigned to a node since its primary is corrupted, if reindex is not an option, can the replica be promoted as primary?
Elasticsearch version is 7.16.3 running under CentOS 7.
Thank you,