You can probably do this with a function_score query. The idea is something
like this:
localhost:9200/_search
{
"query": {
"function_score": {
"functions": [
{
"filter": {
"geo_distance" : {
"distance" : "1km",
"cornerGeoPointLst" : {
"lat" : 40,
"lon" : -70
}
}
},
"boost_factor": 4
},
{
"filter": {
"geo_distance" : {
"distance" : "1km",
"fcGeoPointLst" : {
"lat" : 40,
"lon" : -70
}
}
},
"boost_factor": 3
},
{
"filter": {
"geo_distance" : {
"distance" : "1km",
"tgtGeoPointLst" : {
"lat" : 40,
"lon" : -70
}
}
},
"boost_factor": 2
}
]
}
}
}
--
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/a6ecf1f6-2217-4239-aad7-1052f42251ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.