1.es建立索引:
curl -XPUT 'http://10.xx.xx.xx:9200/索引名稱'
2.es查詢所有索引:
curl -XGET 'http://10.xx.xx.xx:9200/_cat/indices?v'
3.es查詢單個索引內容:
curl -XGET 'http://10.xx.xx.xx:9200/索引名稱/_search?pretty=true'
還有一種帶時間的情況>
curl -XGET 'http://10.xx.xx.xx:9200/索引名稱-2018-08-01/_search?pretty=true'
4.es刪除某個索引下的內容
curl -XDELETE 'http://10.xx.xx.xx:9200/索引名稱?pretty'
以上是linux命令行操作,如果是連接內網的情況下,直接將引號的內容復制到瀏覽器請求就可以返回數據,
查看效果比linux好。