Max limit on the number of values I can specify in the ids filter or generally query clause?

前端 未结 4 1528
北海茫月
北海茫月 2020-11-29 00:53

In elasticsearch what is the max limit to specify the value in the number of values a match can be performed on? I read somewhere that it is 1024 but is also configurable. I

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 01:21

    From the docs for version 6.4:

    Executing a Terms Query request with a lot of terms can be quite slow, as each additional term demands extra processing and memory. To safeguard against this, the maximum number of terms that can be used in a Terms Query both directly or through lookup has been limited to 65536. This default maximum can be changed for a particular index with the index setting index.max_terms_count.

提交回复
热议问题