Difference between revisions of "ElasticSearch Cheat Sheet"

From Gejoreuy
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
  
 
  $ curl http://localhost:9200/_aliases?pretty=true
 
  $ curl http://localhost:9200/_aliases?pretty=true
 +
 +
'''Delete Index'''
 +
 +
$ curl -XDELETE http://localhost-0:9200/[index_name]
 +
 +
'''Check Cluster Health'''
 +
 +
http://localhost:9200/_cluster/health
 +
 +
 +
''' Check Size Per Index'''
 +
 +
http://localhost:9200/_cat/indices?h=index,store.size&format=json&bytes=mb?s=store.size:desc

Latest revision as of 07:17, 10 June 2022