Skip to content
Snippets Groups Projects
Commit a30214d4 authored by Mantas Jonušas's avatar Mantas Jonušas
Browse files

Added min_score

parent cbdb1d7d
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,33 @@ class Search
*/
private $preference;
/**
* @var float
*/
private $minScore;
/**
* @return float
*/
public function getMinScore()
{
return $this->minScore;
}
/**
* Set min score.
*
* @param float $minScore
*
* @return $this
*/
public function setMinScore($minScore)
{
$this->minScore = $minScore;
return $this;
}
/**
* Set offset.
*
......@@ -659,6 +686,7 @@ class Search
'scriptFields' => 'script_fields',
'explain' => 'explain',
'stats' => 'stats',
'minScore' => 'min_score',
];
foreach ($params as $field => $param) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment