'Short query causes [too_many_clauses] too_many_clauses: maxClauseCount is set to 1024 why?
How does a minimalistic query like below :-
{
"sort": [
{
"updated_at": {
"order": "desc"
}
}
],
"query": {
"bool": {
"must": [
{
"match": {
"merchant_id": "91"
}
},
{
"match": {
"name": "ok"
}
},
{
"match": {
"categories.keyword": "kitchenware"
}
},
{
"match": {
"status": 1
}
}
]
}
}
}
Cause a error [too_many_clauses] too_many_clauses: maxClauseCount is set to 1024
? is it even possible that q tiny query like this can cause a maxClauseCount
error ?
Secondly , is there a way i can make out how many query's i'am asking elastic search to run , every time i run a search ?
Note :- Also i'am aware that this problem can be solved just by increasing the max_clause_count
in the elasticsearch.yml file as show in this answer HERE
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|