Forked from bencorlett/gist:de0c289b9ded5b446ebf
Last active
August 29, 2015 14:12
-
-
Save oksuz/fcdf0e523529b1a5a0ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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