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  

相關文章
相關標籤/搜索