Skip to content

Instantly share code, notes, and snippets.

@bensie
Last active December 17, 2015 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bensie/5674543 to your computer and use it in GitHub Desktop.
Save bensie/5674543 to your computer and use it in GitHub Desktop.
{
"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