SearchSortId
class SearchSortId extends SearchSort implements JsonSerializable (View source)
Sort by the document identifier.
Methods
static SearchSortGeoDistance
geoDistance(string $field, float $longitude, float $latitude)
Sort by geo location.
from
SearchSort
descending(bool $descending)
Direction of the sort
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.
SearchSortId
descending(bool $descending)
Direction of the sort