If u are getting below error while indexing:
{
"error": {
"root_cause": [
{
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
}
],
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
},
"status": 403
}
This can be caused by disk space:
PUT index-name/_settings
{
"index": {
"blocks": {
"read_only_allow_delete": "false"
}
}
}
It worked. Thanks for your suggestion.