es翻页超出最大限制
Result window is too large, from + size must be less than or equal to: [10000] but was [56300].
curl \
-XPUT \
-u elastic:test123 \
-H 'Content-Type: application/json' \
'http://127.0.0.1:9200/_all/_settings?preserve_existing=true' -d '{"index.max_result_window" : "65536000"}'
kibana报无法检索搜索结果
Can’t store an async search response larger than [10485760] bytes. This limit can be set by changing the [search.max_async_search_response_size] setting.
By default, Elasticsearch doesn’t allow to store an async search response larger than 10Mb, and an attempt to do this results in an error. The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting.
curl \
-XPUT \
-u elastic:test123 \
-H 'Content-Type: application/json' \
"http://127.0.0.1:9200/_cluster/settings" -d "{\"persistent\": { \"search.max_async_search_response_size\": \"50mb\"}}"
# https://stackoverflow.com/questions/73683682/kibana-and-large-results
es创建一个空索引
curl -u elstic:test123 -XPUT "http://localhost:9200/schools2" -H "Content-Type: application/json"
es给这个索引增加别名
## 新增
curl -u elastic:test123 -XPUT "http://localhost:9200/schools2/_alias/haha" -H "Content-Type: application/json"
## 查看
curl -u elastic:test123 -XGET "http://localhost:9200/_cat/aliases/haha" -H "Content-Type: application/json"
curl -u elastic:test123 -XPOST "http://localhost:9200/_aliases" -H "Content-Type: application/json" -d '
{"actions":[{"add":{"index":"schools2","alias":"my_data2","is_write_index":true}}]}
'