以下の内容はhttps://uga-box.hatenablog.com/entry/2020/10/08/000000より取得しました。


【Elasticsearch】termsに指定できる上限

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を指定しないように考えなおした方がよさそう




以上の内容はhttps://uga-box.hatenablog.com/entry/2020/10/08/000000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14