Auto Add * Wildcard to Lucene Query

This commit is contained in:
Lucas Bartholemy 2014-02-19 19:24:27 +01:00
parent e786002278
commit eee64bb227

View File

@ -105,7 +105,7 @@ class SearchController extends Controller {
$append = " AND (model:User OR model:Space OR (belongsToType:Space AND belongsToId:" . $currentSpace->id . "))";
}
$hits = new ArrayObject(HSearch::getInstance()->Find($keyword . $append));
$hits = new ArrayObject(HSearch::getInstance()->Find($keyword."* " . $append));
$hitCount = count($hits);
// Limit Hits