class GeoDistanceSearchQuery implements JsonSerializable, SearchQueryPart (View source)

A FTS query that finds all matches from a given location (point) within the given distance.

Both the point and the distance are required.

Methods

mixed
jsonSerialize()

No description

boost(float $boost)

No description

field(string $field)

No description

Details

mixed jsonSerialize()

No description

Return Value

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

GeoDistanceSearchQuery boost(float $boost)

No description

Parameters

float $boost

Return Value

GeoDistanceSearchQuery

GeoDistanceSearchQuery field(string $field)

No description

Parameters

string $field

Return Value

GeoDistanceSearchQuery