Sorts search results by relevance score.
Properties¶
$direction
¶
SortClause.php
:
26
Sort direction One of Query::SORT_ASC or Query::SORT_DESC;.
|
|
$target
¶
SortClause.php
:
33
Sort target, high level: section_identifier, attribute_value, etc.
|
|
$targetData
¶
SortClause.php
:
40
Extra target data, required by some sort clauses, field for instance.
|
|
Methods¶
__construct()
¶
Score.php
:
19
Constructs a new SortClause on $sortTarget in direction $sortDirection.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$sortDirection | string | Query::SORT_ASC |
one of Query::SORT_ASC or Query::SORT_DESC |