ElasticSearch常用查询命令

查看es的集群状态

http://IP:9200/_cat/health?v

注: IP指es集群某个ip地址, ?v表示格式化输出

查看es集群节点列表

http://IP:9200/_cat/nodes?v

查看es集群所有索引及数据大小

http://IP:9200/_cat/indices?v

查看单个索引结构信息

http://IP:9200/indexName?pretty=true

注: indexName是索引名字,  pretty=true表示格式化输出

全词搜索

http://IP:9200/indexName/_search?pretty=true

精准搜索

http://IP:9200/indexName/_search?q=123&pretty=true

注: ?q=123表示搜索123

模糊搜索

http://IP:9200/indexName/_search?q=*123*pretty=true

发布了84 篇原创文章 · 获赞 28 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/a544258023/article/details/89709046