Skip to content

Instantly share code, notes, and snippets.

@haarts
Created February 15, 2012 14:09
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 haarts/1835953 to your computer and use it in GitHub Desktop.
Save haarts/1835953 to your computer and use it in GitHub Desktop.
curl -XPUT 'localhost:9200/pictures/picture/1' -d '{ "user" : "senthil", "Title" : "trying out Elastic Search"}'
curl -XPUT 'localhost:9200/pictures/interaction/_mapping' -d '{ "interaction" : { "_parent" : { "type" : "picture" } } }'
curl -XPUT 'localhost:9200/pictures/interaction/1?parent=1' -d '{ "tag" : "tree" }'
curl -XPUT 'localhost:9200/pictures/interaction/2?parent=1' -d '{ "tag" : "house" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment