ES操作命令

1.查看索引

bash 复制代码
curl -XGET "http://localhost:9200/_cat/indices?v"

2.删除索引

bash 复制代码
curl -X DELETE "http://127.0.0.1:9200/indexName"

3.ES最大聚合参数设置

index.max_result_window的默认值通常是10000,如果你需要返回更多结果,可能需要调整这个参数。此外,Elasticsearch中的fromsize参数限制了最大值,from+size不能超过index.max_result_window的设置,否则会抛出异常。

bash 复制代码
curl -H "Content-Type: application/json" -XPUT 127.0.0.1:9200/indexName/_settings -d '{"index.max_result_window":"5000000"}'
相关推荐
rannn_1111 天前
【力扣hot100】链表专题|160、206、234、141、142
java·算法·leetcode·链表·面试·开发
IKUN家族1 天前
Spring IoC&DI
java·spring·rpc
山荷枝1 天前
03-框架--Spring
java·后端·spring
ChaHae-In1 天前
SpringBoot统一功能处理
java·spring boot·后端
coder!mq1 天前
说几个常见的语法糖?
java·开发语言·算法
gugucoding1 天前
38. 【Java】Stream API(下):高级操作与性能
java·开发语言
心平气和量大福大1 天前
android-实例-蒲公英-更新与安装-5-签名与生成APK
android·java·开发语言
952361 天前
Spring-cloud配置中心
java·spring·spring cloud·微服务
ydd1001001 天前
寻找两个正序数组的中位数 Java 题解,二分分割详解
java·开发语言
真上帝的左手1 天前
10. 软件设计&架构-Spring Security 7 整合CAS SSO 单点登录
java·spring·架构·sso