SearchSort
class SearchSort (View source)
Base class for all FTS sort options in querying.
Methods
static SearchSortId
id()
Sort by the document identifier.
static SearchSortScore
score()
Sort by the hit score.
static SearchSortField
field(string $field)
Sort by a field in the hits.
static SearchSortGeoDistance
geoDistance(string $field, float $longitude, float $latitude)
Sort by geo location.
Details
static SearchSortId
id()
Sort by the document identifier.
static SearchSortScore
score()
Sort by the hit score.
static SearchSortField
field(string $field)
Sort by a field in the hits.
static SearchSortGeoDistance
geoDistance(string $field, float $longitude, float $latitude)
Sort by geo location.