Skip to content

Instantly share code, notes, and snippets.

@motemen
Created May 18, 2016 05:33
Show Gist options
  • Save motemen/921e0a58540f21d7a468d375b6288c97 to your computer and use it in GitHub Desktop.
Save motemen/921e0a58540f21d7a468d375b6288c97 to your computer and use it in GitHub Desktop.
http://api.metacpan.org/v0/release/_search?source={%20%22query%22:%20{%20%22filtered%22:%20{%20%22query%22:%20{%20%22match_all%22:%20{}%20},%20%22filter%22:%20{%20%22and%22:%20[%20{%20%22term%22:%20{%20%22distribution%22:%20%22Net-CIDR-MobileJP%22%20}%20},%20{%20%22nested%22:%20{%20%22path%22:%20%22dependency%22,%20%22filter%22:%20{%20%22and%22:%20[%20{%20%22term%22:%20{%20%22dependency.module%22:%20%22WWW::MobileCarrierJP%22%20}%20},%20{%20%22term%22:%20{%20%22dependency.version_numified%22:%200%20}%20}%20]%20}%20}%20}%20]%20}%20}%20}%20}
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"and": [
{
"term": {
"distribution": "Net-CIDR-MobileJP"
}
},
{
"nested": {
"path": "dependency",
"filter": {
"and": [
{ "term": { "dependency.module": "WWW::MobileCarrierJP" } },
{ "term": { "dependency.version_numified": 0 } }
]
}
}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment