Hi all. Running into an issue with what is for me a complex query.
I attempting to do the following: Adjust the score of a geo filtered query
based on distance and include a distance via script field. Gist of my query
here: https://gist.github.com/3829655
When I use a fuzzy query next to the geo filter I get an exception. If I
just do a bool, its fine.
So this works:
query
custom_score
query
filtered
query:{"match_all":{}}
filter
params
script
script_fields
This does not:
query
custom_score
query
filtered
query:{"fuzzy":{name:{value:'pizza'}}}
filter
params
script
script_fields
How should I be structuring this query differently to allow fuzzy?
thx!
--