Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Services/Search/Sphinxsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,28 @@ public function resetFilters()
$this->sphinx->resetFilters();
}

/**
* Set ranking mode.
*
* @param int $ranker The ranker mode to be used.
* @param string $rankexpr The algebraic expression used for ranking.
*/
public function setRankingMode($ranker, $rankexpr = "")
{
$this->sphinx->SetRankingMode($ranker, $rankexpr);
}

/**
* Set matches sorting mode.
*
* @param int $mode The sorting mode to be used.
* @param string $sortby The expression or the fields used for sorting.
*/
public function setSortMode($mode, $sortby = "")
{
$this->sphinx->SetSortMode($mode, $sortby);
}

/**
* Search for the specified query string.
*
Expand Down