, geo_distance , , multi_match_result .
, , , , . , .
, / , , function_score, , . , , , , - , . / , . , - , , , /.
. , date s, - - geo_point s. , , , , . , , , , "". gauss.
"function_score": {
"functions": [
"gauss": {
"my_geo_point_field": {
"origin": "0, 1",
"scale": "5km",
"offset": "500m",
"decay": 0.5
}
}
]
}
, origin x, y (- GeoJSON), longitude, latitude.

, ( ). 0, , . .
scale decay , decay, scale - origin (+/- the offset). 5km origin - origin.
, .
, .
bool/should. OR , . , - :
{
"query": {
"bool": {
"should": [
{
"multi_match": { ... }
},
{
"function_score": {
"functions": [
"gauss": {
"my_geo_point_field": {
"origin": "0, 1",
"scale": "5km",
"offset": "500m",
"decay": 0.5
}
}
]
}
}
]
}
}
}
. must, should OR- ( , 1 ) ( ).
ElasticSearch v1.4, .
Elasticsearch 2.0, , . - , . , , , .
, Geo, ES 2.2+. ( ), . ES 5.0 !