summaryrefslogtreecommitdiffstats
path: root/service/itemservice.php
diff options
context:
space:
mode:
Diffstat (limited to 'service/itemservice.php')
-rw-r--r--service/itemservice.php17
1 files changed, 1 insertions, 16 deletions
diff --git a/service/itemservice.php b/service/itemservice.php
index 0b0746258..ec6bee8bd 100644
--- a/service/itemservice.php
+++ b/service/itemservice.php
@@ -259,28 +259,13 @@ class ItemService extends Service {
/**
* Regenerates the search index for all items
*/
- public function generateSearchIndices($progressbar=null) {
- if ($progressbar) {
- $this->systemConfig->setSystemValue('maintenance', true);
- $progressbar = $progressbar(count($rows));
- $progressbar->setFormat('verbose');
- }
-
+ public function generateSearchIndices() {
$rows = $this->itemMapper->findAllItemIdsAndUsers();
foreach ($rows as $row) {
$item = $this->find($row['id'], $row['user_id']);
$item->generateSearchIndex();
$this->itemMapper->update($item);
-
- if ($progressbar) {
- $progressbar->advance();
- }
- }
-
- if ($progressbar) {
- $progressbar->finish();
- $this->systemConfig->setSystemValue('maintenance', false);
}
}