Documentation

SearchSortGeoDistance implements JsonSerializable, SearchSort

Sort by a location and unit in the hits.

Interfaces, Classes and Traits

JsonSerializable
SearchSort
Base interface for all FTS sort options in querying.

Table of Contents

__construct()  : mixed
descending()  : SearchSortGeoDistance
Direction of the sort
jsonSerialize()  : mixed
unit()  : SearchSortGeoDistance
Name of the units

Methods

__construct()

public __construct(string $field, float $logitude, float $latitude) : mixed
Parameters
$field : string
$logitude : float
$latitude : float
Return values
mixed

jsonSerialize()

public jsonSerialize() : mixed
Return values
mixed

Search results