Difference between revisions of "ElasticSearch Cheat Sheet"

From Gejoreuy
Jump to navigation Jump to search
Line 9: Line 9:
 
'''Delete Index'''
 
'''Delete Index'''
  
  $ curl -XDELETE http://localhost-0:9200/[index-name]
+
  $ curl -XDELETE http://localhost-0:9200/[index_name]

Revision as of 10:32, 1 October 2021

List Index

$ curl http://localhost:9200/_cat/indices?v

List Aliases

$ curl http://localhost:9200/_aliases?pretty=true

Delete Index

$ curl -XDELETE http://localhost-0:9200/[index_name]