Documentation

SearchSortGeoDistance implements JsonSerializable, SearchSort

Sort by a location and unit in the hits.

Table of Contents

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

Methods

jsonSerialize()

public jsonSerialize( ) : mixed
Return values
mixed

__construct()

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

Search results