Skip to content

Instantly share code, notes, and snippets.

@oalders
Created May 11, 2011 19:33
Show Gist options
  • Save oalders/967141 to your computer and use it in GitHub Desktop.
Save oalders/967141 to your computer and use it in GitHub Desktop.
# this returns results
curl -XGET 'http://127.0.0.1:9200/cpan/release/_search?scroll=5m&pretty=1' -d '
{
"query" : {
"term" : {
"status" : "latest"
}
},
"explain" : 0,
"size" : 10
}
'
# this returns no results
curl -XGET 'http://127.0.0.1:9201/cpan/module/_search?scroll=5m&pretty=1' -d '
{
"query" : {
"term" : {
"status" : "latest"
}
},
"explain" : 0,
"size" : 10
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment