我打算将复杂查询的搜索结果存储为ID列表,以便在一段时间前执行汇总。
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-ids-query.html
我可以发送的ID查询中ID的最大数量是多少?
最佳答案
默认限制为1024。但是您可以通过更改 elasticsearch.yml 中的设置来增加它
indices.query.bool.max_clause_count: 10000
有关此主题的更多信息,请参见:
https://www.elastic.co/guide/en/elasticsearch/reference/6.6/search-settings.html
http://elasticsearch-users.115913.n3.nabble.com/index-query-bool-max-clause-count-Setting-and-TermsQueryParser-td3050751.html
https://github.com/elastic/elasticsearch/issues/482
http://elasticsearch-users.115913.n3.nabble.com/index-query-bool-max-clause-count-Setting-and-TermsQueryParser-td3050751.html
关于elasticsearch - ID查询中ID的最大数量是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54597455/