Skip to content

Instantly share code, notes, and snippets.

@langsharpe
Last active August 29, 2015 14:06
Show Gist options
  • Save langsharpe/a54a3872d06ad6627dba to your computer and use it in GitHub Desktop.
Save langsharpe/a54a3872d06ad6627dba to your computer and use it in GitHub Desktop.
Elasticsearch cheat sheet
# Number of documents in an index
curl -s http://localhost:9200/test_volunteering_entities/_stats/docs | jq '._all.total.docs.count'
# First ten items in an index
curl -s http://localhost:9200/development_charities/_search?size=10 | jq '.hits.hits[] | ._source.name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment