Documentation

SearchSortField
in package
implements JsonSerializable, SearchSort

Sort by a field in the hits.

Interfaces, Classes, Traits and Enums

JsonSerializable
SearchSort
Base interface for all FTS sort options in querying.

Table of Contents

$descending  : bool|null
$field  : string
$missing  : string|null
$mode  : string|null
$type  : string|null
__construct()  : mixed
descending()  : SearchSortField
Direction of the sort
missing()  : SearchSortField
Set where the hits with missing field will be inserted
mode()  : SearchSortField
Set mode of the sort
type()  : SearchSortField
Set type of the field

Properties

Methods

__construct()

public __construct(string $field) : mixed
Parameters
$field : string
Return values
mixed

        

Search results