GeoDistanceSearchQuery
in package
implements
JsonSerializable, SearchQuery
A FTS query that finds all matches from a given location (point) within the given distance.
Both the point and the distance are required.
Interfaces, Classes and Traits
- JsonSerializable
- SearchQuery
- Common interface for all classes, which could be used as a body of SearchQuery
Table of Contents
- __construct() : mixed
- boost() : GeoDistanceSearchQuery
- field() : GeoDistanceSearchQuery
- jsonSerialize() : mixed
Methods
__construct()
public
__construct(float $longitude, float $latitude[, string $distance = null ]) : mixed
Parameters
- $longitude : float
- $latitude : float
- $distance : string = null
Return values
mixed —boost()
public
boost(float $boost) : GeoDistanceSearchQuery
Parameters
- $boost : float
Return values
GeoDistanceSearchQuery —field()
public
field(string $field) : GeoDistanceSearchQuery
Parameters
- $field : string
Return values
GeoDistanceSearchQuery —jsonSerialize()
public
jsonSerialize() : mixed