SearchSortGeoDistance
class SearchSortGeoDistance implements JsonSerializable, SearchSort (View source)
Sort by a location and unit in the hits.
Methods
mixed
jsonSerialize()
Specify data which should be serialized to JSON
__construct(string $field, float $logitude, float $latitude)
No description
descending(bool $descending)
Direction of the sort
unit(string $unit)
Name of the units
Details
mixed
jsonSerialize()
Specify data which should be serialized to JSON
__construct(string $field, float $logitude, float $latitude)
No description
SearchSortGeoDistance
descending(bool $descending)
Direction of the sort
SearchSortGeoDistance
unit(string $unit)
Name of the units