Difference between revisions of "ElasticSearch Cheat Sheet"

From Gejoreuy
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
'''Delete Index'''
 
'''Delete Index'''
  
  $ curl -XDELETE http://localhost-0:9200/[index-name]
+
  $ 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