{
"error" : {
"root_cause" : [
{
"type" : "too_many_clauses",
"reason" : "too_many_clauses: maxClauseCount is set to 1024"
},
{
"type" : "too_many_clauses",
"reason" : "too_many_clauses: maxClauseCount is set to 1024"
},
{
"type" : "too_many_clauses",
"reason" : "too_many_clauses: maxClauseCount is set to 1024"
},
{
"type" : "too_many_clauses",
"reason" : "too_many_clauses: maxClauseCount is set to 1024"
}
],
"type" : "search_phase_execution_exception",
"reason" : "all shards failed",
"phase" : "query",
"grouped" : true,
"failed_shards" : [
{
"shard" : 0,
"index" : "article_202211",
"node" : "9LxMXvdkRAWwUP0lFlApcg",
"reason" : {
"type" : "query_shard_exception",
"reason" : "failed to create query: maxClauseCount is set to 1024",
"index_uuid" : "kf6xAESkSL-A9o3agqOi8A",
"index" : "article_202211",
"caused_by" : {
"type" : "too_many_clauses",
"reason" : "too_many_clauses: maxClauseCount is set to 1024"
}
}
}
],
"caused_by" : {
"type" : "too_many_clauses",
"reason" : "too_many_clauses: maxClauseCount is set to 1024"
}
},
"status" : 400
}
Please describe the actual behavior
But I only got the elastic: Error 400 (Bad Request): all shards failed [type=search_phase_execution_exception] without the root cause, which makes me confused that I can't locate this root error immediately since there are so many errors with 400
Which version of Elastic are you using?
elastic.v7 (for Elasticsearch 7.x)
Please describe the expected behavior
I want root cause with 400 error like
Please describe the actual behavior
But I only got the
elastic: Error 400 (Bad Request): all shards failed [type=search_phase_execution_exception]
without the root cause, which makes me confused that I can't locate this root error immediately since there are so many errors with 400