查看es的集群狀態(tài)
http://IP:9200/_cat/healthv
注: IP指es集群某個ip地址, v表示格式化輸出
查看es集群節(jié)點列表
http://IP:9200/_cat/nodesv
查看es集群所有索引及數(shù)據(jù)大小
http://IP:9200/_cat/indicesv
查看單個索引結(jié)構(gòu)信息
http://IP:9200/indexNamepretty=true
注: indexName是索引名字, pretty=true表示格式化輸出
全詞搜索
http://IP:9200/indexName/_searchpretty=true
精準搜索
http://IP:9200/indexName/_searchq=123&pretty=true
注: q=123表示搜索123
模糊搜索文章來源:http://www.zghlxwxcb.cn/news/detail-437438.html
http://IP:9200/indexName/_searchq=*123*pretty=true文章來源地址http://www.zghlxwxcb.cn/news/detail-437438.html
到了這里,關(guān)于ElasticSearch常用查詢命令查看基本信息的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!