diff --git a/out/out.Search.php b/out/out.Search.php index 82b35359d..b0a9ff7e1 100644 --- a/out/out.Search.php +++ b/out/out.Search.php @@ -196,7 +196,9 @@ if($fullsearch) { $total = 0; $index = $fulltextservice->Indexer(); if($index) { -// $terms = $index->terms($_GET['query']); + if(!empty($settings->_suggestTerms)) { + $terms = $index->terms($_GET['query'], $settings->_suggestTerms); + } $lucenesearch = $fulltextservice->Search(); $searchresult = $lucenesearch->search($query, array('record_type'=>$record_type, 'owner'=>$ownernames, 'status'=>$status, 'category'=>$categorynames, 'user'=>$user->isAdmin() ? [] : [$user->getLogin()], 'mimetype'=>$mimetype, 'startFolder'=>$startFolder, 'rootFolder'=>$rootFolder, 'attributes'=>$attributes), ($pageNumber == 'all' ? array() : array('limit'=>$limit, 'offset'=>$limit * ($pageNumber-1)))); if($searchresult === false) {