mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Further search system refactorings
- Moved search term querying to its own method. - Updated Large content seeder to be more performant
This commit is contained in:
@ -33,8 +33,9 @@ class LargeContentSeeder extends Seeder
|
||||
|
||||
$largeBook->pages()->saveMany($pages);
|
||||
$largeBook->chapters()->saveMany($chapters);
|
||||
$all = array_merge([$largeBook], array_values($pages->all()), array_values($chapters->all()));
|
||||
|
||||
app()->make(PermissionService::class)->buildJointPermissions();
|
||||
app()->make(SearchIndex::class)->indexAllEntities();
|
||||
app()->make(PermissionService::class)->buildJointPermissionsForEntity($largeBook);
|
||||
app()->make(SearchIndex::class)->indexEntities($all);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user