termsで複数のキーワードを指定したさいに以下のエラーが発生した
{
"error": {
"root_cause": [
{
"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,
...略
}
利用としては書かれているようにtermsで1024件を超えた数を指定した場合に発生するみたい
1024件以上のtermsを指定しないように考えなおした方がよさそう