attempt to make partial match filter
This commit is contained in:
parent
877533b43d
commit
f21dc04a00
|
|
@ -57,9 +57,9 @@ class SearchController extends ListDiscussionsController
|
||||||
|
|
||||||
if (! empty($search)) {
|
if (! empty($search)) {
|
||||||
$filterQuery
|
$filterQuery
|
||||||
->add($this->sentenceMatch($search))
|
->add($this->sentenceMatch($search), 'should')
|
||||||
->add($this->wordMatch($search))
|
->add($this->wordMatch($search), 'should')
|
||||||
->add($this->partialMatch($search));
|
->add($this->partialMatch($search), 'should');
|
||||||
}
|
}
|
||||||
|
|
||||||
$builder = (new Builder($this->elastic))
|
$builder = (new Builder($this->elastic))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue