Documentation

SearchSortGeoDistance
in package
implements JsonSerializable, SearchSort

Sort by a location and unit in the hits.

Interfaces, Classes, Traits and Enums

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

Table of Contents

$descending  : bool|null
$field  : string
$latitude  : float
$longitude  : float
$unit  : string|null
__construct()  : mixed
descending()  : SearchSortGeoDistance
Direction of the sort
unit()  : SearchSortGeoDistance
Name of the units

Properties

Methods

__construct()

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

        

Search results