ElasticSearch常用查询命令
elasticsearch的curl命令如何使用,点击查看: curl增删改查操作ES
elasticsearch的get、put、post、delete如何使用,点击查看: 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