id()
id() : \Couchbase\SearchSortId
Sort by the document identifier.
Sort by the hit score.
id() : \Couchbase\SearchSortId
Sort by the document identifier.
score() : \Couchbase\SearchSortScore
Sort by the hit score.
field(string $field) : \Couchbase\SearchSortField
Sort by a field in the hits.
string | $field | the field name |
geoDistance(string $field, float $longitude, float $latitude) : \Couchbase\SearchSortGeoDistance
Sort by geo location.
string | $field | the field name |
float | $longitude | the longitude of the location |
float | $latitude | the latitude of the location |
descending(boolean $descending) : \Couchbase\SearchSortScore
Direction of the sort
boolean | $descending |