Created
September 30, 2011 09:40
-
-
Save ruflin/1253270 to your computer and use it in GitHub Desktop.
Get has source
This file contains hidden or 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 -XDELETE 'http://localhost:9200/test/' | |
curl -XPUT 'http://localhost:9200/test/' | |
curl -XPUT 'http://localhost:9200/test/test/_mapping' -d ' | |
{"test":{"properties":{"firstname":{"type":"string","store":"yes"},"lastname":{"type":"string", "store":"no"}},"_source":{"enabled":false}}}' | |
curl -XPUT 'http://localhost:9200/test/test/1' -d ' | |
{"firstname":"Nicolas","lastname":"Ruflin"}' | |
curl -XGET 'http://localhost:9200/test/test/_search' -d ' | |
{"query":{"query_string":{"query":"ruflin"}},"fields":["*"]}' | |
curl -XGET 'http://localhost:9200/test/test/1?pretty=true' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment