Skip to content

Instantly share code, notes, and snippets.

@toddsiegel
Last active February 9, 2024 16:53
Show Gist options
  • Save toddsiegel/3dbfc09ff88b54d0effa8fe3fa53aa74 to your computer and use it in GitHub Desktop.
Save toddsiegel/3dbfc09ff88b54d0effa8fe3fa53aa74 to your computer and use it in GitHub Desktop.
Elasticsearch Cheatsheet

Introspection

List all indicies

The v query params shows the heading in the response

GET /_cat/indices?v

List indicies with wildcard

GET /_cat/indices/profiles*?v

Indexes

Delete index

Documents

Get document by id

GET <index>/_doc/<_id>

Count all documents in an index

GET /<index>/_count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment