Skip to content

Instantly share code, notes, and snippets.

@wireframe
Created February 4, 2011 16:29
Show Gist options
  • Select an option

  • Save wireframe/811312 to your computer and use it in GitHub Desktop.

Select an option

Save wireframe/811312 to your computer and use it in GitHub Desktop.
index, refresh, search
curl -XDELETE 'http://localhost:9200/foo/bar'
curl -XPUT 'http://localhost:9200/foo/bar/123' -d '
{
name: "baz"
}
'
curl -XPOST 'http://localhost:9200/foo/_refresh'
curl -XGET 'http://localhost:9200/foo/bar/_search?q=baz&size=10'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment