\CouchbaseSearchSortGeoDistance

Sort by a location and unit in the hits.

Summary

Methods
Properties
Constants
id()
score()
field()
geoDistance()
descending()
unit()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

field()

field(string  $field) : \Couchbase\SearchSortField

Sort by a field in the hits.

Parameters

string $field

the field name

Returns

\Couchbase\SearchSortField

geoDistance()

geoDistance(string  $field, float  $longitude, float  $latitude) : \Couchbase\SearchSortGeoDistance

Sort by geo location.

Parameters

string $field

the field name

float $longitude

the longitude of the location

float $latitude

the latitude of the location

Returns

\Couchbase\SearchSortGeoDistance

descending()

descending(boolean  $descending) : \Couchbase\SearchSortGeoDistance

Direction of the sort

Parameters

boolean $descending

Returns

\Couchbase\SearchSortGeoDistance