scout-elasticsearch-driver
scout-elasticsearch-driver copied to clipboard
add more complex sort option (geo_distance eg)
trafficstars
now we can dot something like
Model::search('*')->whereGeoDistance('pin', $position, '500m')->from($offset)->take($limit)->sort([
"_geo_distance" => [
"pin" => $position,
"order" => "asc",
"unit" => "km",
"distance_type" => "plane",
],
]
);
Hi, is this going to be merged at any point ? Thanks