Instantly share code, notes, and snippets.

@bensie /es.json
Last active Dec 17, 2015

Embed
What would you like to do?
{
"from": 0,
"size": 30,
"query": {
"filtered": {
"filter": {
"and": [
{
"or": [
{
"geo_distance": {
"distance": "10miles",
"location": {
"lat": 32.7153,
"lon": -117.157
}
}
},
{
"geo_distance": {
"distance": "10miles",
"location": {
"lat": 37.7749,
"lon": -122.419
}
}
}
]
},
{
"missing": {
"field": "deleted_at"
}
},
{
"range": {
"expires_at": {
"gt": "2013-05-29T23:41:44Z"
}
}
},
{
"terms": {
"category_name": [
"Customer Service",
"Maintenance"
]
}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment