Skip to content

Instantly share code, notes, and snippets.

@niuage
Created May 14, 2013 15:06
Show Gist options
  • Save niuage/5576653 to your computer and use it in GitHub Desktop.
Save niuage/5576653 to your computer and use it in GitHub Desktop.
[REQUEST FAILED] curl -X GET 'http://localhost:9200/poe_shields/_search?from=0&size=15&pretty' -d '{
"query":{
"bool":{
"must":[
{
"query_string":{
"query":"_exists_:crawled_at"
}
},
{
"term":{
"verified":{
"term":true
}
}
},
{
"term":{
"league_id":{
"term":3
}
}
},
{
"range":{
"required_level":{
"gte":-100000,
"lte":40
}
}
},
{
"nested":{
"query":{
"bool":{
"must":[
{
"term":{
"mod_id":{
"term":27
}
}
}
],
"should":[
{
"range":{
"value":{
"gte":-100000,
"lte":100000
}
}
},
{
"query_string":{
"query":"_missing_:value"
}
}
],
"minimum_number_should_match":1
}
},
"path":"stats"
}
}
]
}
},
"sort":[
{
"scrawled_at":"desc"
}
],
"facets":{
"name":{
"terms":{
"field":"base_name",
"size":10,
"all_terms":false
}
},
"rarity":{
"terms":{
"field":"rarity_name",
"size":10,
"all_terms":false
}
},
"linked_sockets":{
"terms":{
"field":"linked_socket_count",
"size":10,
"all_terms":false
}
},
"type":{
"terms":{
"field":"type",
"size":10,
"all_terms":false
}
},
"league":{
"terms":{
"field":"league_name",
"size":10,
"all_terms":false
}
},
"category":{
"terms":{
"field":"category",
"size":10,
"all_terms":false
}
}
},
"size":15,
"from":0
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment