一旦应用程序运行,当弹性搜索数据时,它将无法检索。搜索数据时显示错误。它有两种错误类型
1)所有分片均失败错误
2)找不到索引异常。
我们已经重新启动了所有主搜索和弹性搜索服务器,但仍然找不到解决方案。另外,我是弹性搜索的新手。
1)找不到索引异常
{
"error": {
"root_cause": [
{
"type": "index_not_found_exception",
"reason": "no such index",
"resource.type": "index_or_alias",
"resource.id": "denmod_y_104242",
"index_uuid": "_na_",
"index": "denmod_y_104242"
}
],
"type": "index_not_found_exception",
"reason": "no such index",
"resource.type": "index_or_alias",
"resource.id": "denmod_y_104242",
"index_uuid": "_na_",
"index": "denmod_y_104242"
},
"status": 404
}
2)
{
"error": {
"root_cause": [
],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"failed_shards": [
],
"caused_by": {
"type": "no_shard_available_action_exception",
"reason": null,
"index_uuid": "Qtybg8VFStaOKuDkwJ00RA",
"shard": "5",
"index": "en_y_77"
}
},
"status": 503
}
1)对于第一个错误,我们需要对分片进行分配或分配
2)对于第二个错误,需要纠正索引错误。
谢谢。