Created
December 22, 2011 15:36
-
-
Save VirgileD/1510709 to your computer and use it in GitHub Desktop.
ElasticSearch Count API returns an error if no query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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