-
-
Save honzakral/29e84d67f7f917c20927 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": { | |
"bool": { | |
"must": [ | |
{ | |
"query_string": { | |
"query": "\"ruby\" OR \"rubi\" OR \"rubz\"", | |
"default_operator": "or" | |
} | |
} | |
], | |
"should": [ | |
{ | |
"query_string": { | |
"query": "\"menlo park\"" | |
} | |
}, | |
{ | |
"filtered": { | |
"filter": { | |
"geo_distance": { | |
"_cache": true, | |
"city_geo_point": [ | |
-122.1811111, | |
37.4538889 | |
], | |
"distance": "50km" | |
} | |
} | |
} | |
} | |
], | |
"minimum_should_match": 1 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment