SilverStripe\FullTextSearch\Search\Indexes\SearchIndex::addSortField
Add a field that should be sortable
Signature
public function addSortField(string
$field,
[string
$forceType = NULL,
[array
$extraOptions = ]] )
Parameters
$field
— string- - The field to add
$forceType
— string- - The type to force this field as (required in some cases, when not detectable from metadata)
$extraOptions
— array- - Dependent on search implementation