use partial match with weighting
This commit is contained in:
parent
9108553f09
commit
502f7a9f86
|
|
@ -56,10 +56,10 @@ class SearchController extends ListDiscussionsController
|
||||||
|
|
||||||
if (! empty($search)) {
|
if (! empty($search)) {
|
||||||
$filterQuery
|
$filterQuery
|
||||||
->add($this->sentenceMatch($search))
|
// ->add($this->sentenceMatch($search))
|
||||||
->add($this->wordMatch($search, 'and'))
|
// ->add($this->wordMatch($search, 'and'))
|
||||||
->add($this->wordMatch($search, 'or'))
|
// ->add($this->wordMatch($search, 'or'))
|
||||||
// ->add($this->partialMatch($search))
|
->add($this->partialMatch($search))
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue