summaryrefslogtreecommitdiffstats
path: root/service/itemservice.php
diff options
context:
space:
mode:
Diffstat (limited to 'service/itemservice.php')
-rw-r--r--service/itemservice.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/service/itemservice.php b/service/itemservice.php
index ec6bee8bd..95a07d425 100644
--- a/service/itemservice.php
+++ b/service/itemservice.php
@@ -260,14 +260,7 @@ class ItemService extends Service {
* Regenerates the search index for all items
*/
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);
- }
-
+ $this->itemMapper->updateSearchIndices();
}
}