SearchSortField
class SearchSortField implements JsonSerializable, SearchSort (View source)
Sort by a field in the hits.
Methods
mixed
jsonSerialize()
Specify data which should be serialized to JSON
__construct(string $field)
No description
descending(bool $descending)
Direction of the sort
type(string $type)
Set type of the field
mode(string $mode)
Set mode of the sort
missing(string $missing)
Set where the hits with missing field will be inserted
Details
mixed
jsonSerialize()
Specify data which should be serialized to JSON
__construct(string $field)
No description
SearchSortField
descending(bool $descending)
Direction of the sort
SearchSortField
type(string $type)
Set type of the field
SearchSortField
mode(string $mode)
Set mode of the sort
SearchSortField
missing(string $missing)
Set where the hits with missing field will be inserted