CheatSnip

Related

Index Document

elasticsearch

Insert document into index

Update Document

elasticsearch

Update an existing document

Delete Document

elasticsearch

Delete a document by ID

elasticsearch/es-get-doc

Get Document

Retrieve document by ID

elasticsearch
document
get

Command

curl -X GET 'http://localhost:9200/my_index/_doc/1?pretty'

Examples

Fetch user with ID=1

curl -X GET 'http://localhost:9200/users/_doc/1?pretty'

More

Check Cluster Health

elasticsearch

Get overall Elasticsearch cluster health

Cluster Stats

elasticsearch

View cluster-wide statistics

Node Stats

elasticsearch

Get stats for all nodes

CheatSnip

Lightning-fast access to essential developer commands and code snippets. Search, copy, and master your favorite tools with our comprehensive cheat sheets.

Poorna Prakash

Quick Links

Git CommandsDockerNPMKubernetesYour Favorites

Legal

Terms & ConditionsPrivacy PolicyCookie Preferences

Company

About UsContact

© 2025 CheatSnip. All rights reserved.

Made with ❤️ for developers