Skip to content

Instantly share code, notes, and snippets.

@wireframe
Created February 2, 2011 22:01
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 wireframe/808546 to your computer and use it in GitHub Desktop.
Save wireframe/808546 to your computer and use it in GitHub Desktop.
curl -XDELETE 'http://localhost:9200/foo'
curl -XPUT 'http://localhost:9200/foo' -d '
{
index: {}
}
'
curl -XPUT 'http://localhost:9200/foo/bar/123' -d '
{
name: "baz"
}
'
curl -XPOST 'http://localhost:9200/foo/_refresh'
curl -XGET 'http://localhost:9200/foo/_search?q=foo&size=10'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment