ElasticSearch Cheatsheet
?
R
BashCollection of frequent REST API commands for ElasticSearch
1# ElasticSearch operates under a 3 layer structure:
2# ELASTIC_SEARCH/index/type/document
3
4# index = database
5# type = table or collection
6# document = row or doc
7
8# Get Indexes
9curl https://coderecipes.eu-central-1.es.amazonaws.com/_cat/indices?v
10
11# Delete Indexes
12curl -XDELETE https://coderecipes.eu-central-1.es.amazonaws.com/logstash-2020.02.0\*\*
13
14# Delete types
15curl -XDELETE https://coderecipes.eu-central-1.es.amazonaws.com/logstash/maintenanceCreated on 12/3/2019