Skip to content

Instantly share code, notes, and snippets.

@VirgileD
Created December 22, 2011 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VirgileD/1510709 to your computer and use it in GitHub Desktop.
Save VirgileD/1510709 to your computer and use it in GitHub Desktop.
ElasticSearch Count API returns an error if no query
curl -s -XPUT "http://localhost:9200/elastical-test-mapping/type/1" -d '{
"title": "Hello world",
"body": "Welcome to my stupid blog."
}'
curl -s -XGET "http://localhost:9200/elastical-test-mapping/type/_count"
curl -s -XGET "http://localhost:9200/elastical-test-mapping/type/_count?q=*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment