From 29cf8ed786689a83761c6daf691e110277595403 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Wed, 16 Oct 2024 14:09:23 +0200 Subject: [PATCH] fix reindex method in upgrade-step --- src/redturtle/volto/upgrades.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redturtle/volto/upgrades.py b/src/redturtle/volto/upgrades.py index 6bb02f6..09deebc 100644 --- a/src/redturtle/volto/upgrades.py +++ b/src/redturtle/volto/upgrades.py @@ -536,7 +536,7 @@ def to_4308(context): obj = brain.getObject() if i % 100 == 0: logger.info(f"Progress: {i}/{tot}") - catalog.catalog_object(obj, idxs=["SearchableText"], update_metadata=False) + obj.reindexObject(idxs=["SearchableText"], update_metadata=True) if i % 1000 == 0: transaction.commit() logger.info(f"{i} items processed. Commit.")