Oh I see, sounds like you want to sort by relevance and then have the 
distance factored into the relevance score also. You might want to take a 
look at the function_score query:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#_using_function_score

In it, you can combine say a match query with a function where you set the 
origin of your geo_point as well as some distance and decay parameters and 
that will influence your score based on distance from your origin point.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/e011e49f-00b3-46c5-9976-a7029313c00f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to