Skip to content

Instantly share code, notes, and snippets.

@mech
Forked from bencorlett/gist:de0c289b9ded5b446ebf
Last active August 29, 2015 14:06
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 mech/f4002d7031b8541e857a to your computer and use it in GitHub Desktop.
Save mech/f4002d7031b8541e857a 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