I have a complex query in elasticsearch. It's slow. I want to optimize it, but I don't know how to work. How to explain the query, like SQL explain?
I see elastichsearch _valite/query?explain. It can explain score.
But I need to view detailed execution plan.
{
"post_filter": {
"bool": {
"should": [
{
"bool": {
"must": [
{
"term": {
"base.sysCode": "2801"
}
},
{
"term": {
"base.status": [
12,
0
]
}
}
]
}
}
]
}
},
"fields": [
"base.sysCode",
"base.orderNo"
]
}
result
{
"valid": true,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"explanations": [
{
"index": "odi_bus_betad_2013",
"valid": true,
"explanation": "ConstantScore(*:*)"
}
]
}