Skip to content

Instantly share code, notes, and snippets.

@monken
Forked from oalders/gist:967141
Created May 15, 2011 18:22
Show Gist options
  • Save monken/973390 to your computer and use it in GitHub Desktop.
Save monken/973390 to your computer and use it in GitHub Desktop.
# this returns results
curl -XGET 'http://api.beta.metacpan.org/release/_search?scroll=5m&pretty=1' -d '
{
"query" : {
"term" : {
"status" : "latest"
}
},
"explain" : 0,
"size" : 10
}
'
# this returns no results
curl -XGET 'http://api.beta.metacpan.org/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