Skip to content

Instantly share code, notes, and snippets.

@bencorlett
Created August 29, 2014 06:33
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save bencorlett/de0c289b9ded5b446ebf to your computer and use it in GitHub Desktop.
Save bencorlett/de0c289b9ded5b446ebf 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