\CouchbaseSearchSortId

Sort by the document identifier.

Summary

Methods
Properties
Constants
id()
score()
field()
geoDistance()
descending()
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\SearchSortId

Direction of the sort

Parameters

boolean $descending

Returns

\Couchbase\SearchSortId