> For the complete documentation index, see [llms.txt](https://www.devops.buzz/public/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.devops.buzz/public/elasticsearch/cheat-sheet.md).

# Cheat Sheet

## Referentes

Cheat Sheet: <https://lzone.de/cheat-sheet/ElasticSearch>

## Troubleshoot

```
curl -XGET 'http://localhost:9200/_cluster/state?pretty=true'
curl -XGET 'http://localhost:9200/_cluster/health?pretty'
curl -XGET 'http://localhost:9200/_cat/indices'
curl -XGET localhost:9200/_cluster/allocation/explain?pretty
curl -XGET http://localhost:9200/_cluster/allocation/explain?include_disk_info=true&pretty
curl -XGET localhost:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason| grep UNASSIGNED
```

```
curl -XPOST 'localhost:9200/_cluster/reroute?retry_failed'
curl -XDELETE 'localhost:9200/my-index-name/'
```
