设置普通查询结果最大值
PUT _all/_settings
{"index.max_result_window":26000}
设置聚合后 buckets桶的最大值
PUT /_cluster/settings
{
"persistent": {
"search.max_buckets": 26000
}
}# 查询语句中需要添加"track_total_hits":true,
其他参考:
https://blog.csdn.net/w903328615/article/details/121639056
https://blog.csdn.net/dz77dz/article/details/124990010
Original: https://www.cnblogs.com/gjths/p/16502057.html
Author: ExpectoPatronum—S
Title: ES查询1w条最大限制修改
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/607774/
转载文章受原作者版权保护。转载请注明原作者出处!