You can take a look at the function_score query, should be able to boost up 
matches (filter) on any geo condition. About the geo area size, you'll 
probably have to hard code the boost for now inside the function_score 
query, i.e., you know the area you are filtering and how big it is so you 
boost explicitly based on that knowledge. About the number of documents in 
the area, that's an interesting requirement - have to think about that for 
a bit - but I suppose you could run a prior query first like maybe an 
aggregation, determine in the counts, and then dynamically construct a 
function_score query with appropriate boosts based on the counts and then 
run it as a final query.

-- 
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/c5eabcf0-3252-4726-a5cb-7f93a4dd8295%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to