Elasticsearch修改查询返回最大记录条数

关掉切片

curl --user elastic:changeme -XPOST '127.0.0.1:9200/bavbt/_close'

设置返回记录数

curl --user elastic:changeme -XPUT http://127.0.0.1:9200/bavbt/_settings?preserve_existing=true -H 'Content-Type: application/json' -d '{
"max_result_window" : "2000000000"
}'

开启切片

curl --user elastic:changeme -XPOST '127.0.0.1:9200/bavbt/_open'
点赞