Skip to content

Instantly share code, notes, and snippets.

@oksuz
Forked from bencorlett/gist:de0c289b9ded5b446ebf
Last active August 29, 2015 14:12
Show Gist options
  • Save oksuz/fcdf0e523529b1a5a0ed to your computer and use it in GitHub Desktop.
Save oksuz/fcdf0e523529b1a5a0ed to your computer and use it in GitHub Desktop.
{
"query": {
"function_score": {
"query": {
"bool": {
"must": {
"multi_match": {"query": "Renaissance", "fields": ["name", "company"]},
"term": {"features": "disability_access"},
},
"should": {
"term": {"features": "wifi"},
"range": {"floor_levels": {"gt": 1}}
}
}
},
"functions": [
{
"gauss": {
"location": {
"origin": "52.3712561,4.9005577",
"offset": "0.5km",
"decay": 20
}
}
},
{
"gauss": {
"price": {
"origin": 0,
"offset": 100,
"decay": 20
}
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment