Difference between revisions of "ElasticSearch Cheat Sheet"

From Gejoreuy
Jump to navigation Jump to search
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]

Revision as of 10:31, 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]