mirror of
https://github.com/humhub/humhub.git
synced 2025-04-21 23:52:04 +02:00
Auto Add * Wildcard to Lucene Query
This commit is contained in:
parent
e786002278
commit
eee64bb227
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user