change weighing for exact words match
This commit is contained in:
parent
4bc89949ec
commit
9401b677a3
|
|
@ -267,7 +267,7 @@ class SearchController extends ListDiscussionsController
|
|||
$query = (new MatchQuery('content', $q))
|
||||
->operator($operator);
|
||||
|
||||
$boost = $operator === 'and' ? 1 : .8;
|
||||
$boost = $operator === 'and' ? 1.8 : .8;
|
||||
|
||||
return $this->boolQuery($query, $boost);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue