ES查询1w条最大限制修改
# 设置普通查询结果最大值 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