disable full-text search for autocomplete
This commit is contained in:
@@ -437,7 +437,7 @@ class Base
|
||||
{
|
||||
if (isset($params['q']) && $params['q'] !== '') {
|
||||
$textFilter = $params['q'];
|
||||
$this->textFilter($textFilter, $result);
|
||||
$this->textFilter($textFilter, $result, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2193,7 +2193,7 @@ class Base
|
||||
return $result;
|
||||
}
|
||||
|
||||
protected function textFilter($textFilter, array &$result)
|
||||
protected function textFilter($textFilter, array &$result, $noFullText = false)
|
||||
{
|
||||
$fieldDefs = $this->getSeed()->getAttributes();
|
||||
$fieldList = $this->getTextFilterFieldList();
|
||||
@@ -2237,6 +2237,8 @@ class Base
|
||||
}
|
||||
}
|
||||
|
||||
if ($noFullText) $skipFullTextSearch = true;
|
||||
|
||||
$fullTextSearchData = null;
|
||||
if (!$skipFullTextSearch) {
|
||||
$fullTextSearchData = $this->getFullTextSearchDataForTextFilter($textFilterForFullTextSearch, !$useFullTextSearch);
|
||||
|
||||
Reference in New Issue
Block a user