ElasticSearch经常使用查询命令

查看es的集群状态node

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

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

查看es集群节点列表集群

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

查看es集群全部索引及数据大小数据

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

查看单个索引结构信息index

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

注: 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  

相关文章
相关标签/搜索