Skip to content

Commit

Permalink
fix reindex method in upgrade-step
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Oct 16, 2024
1 parent 4305980 commit 29cf8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redturtle/volto/upgrades.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

0 comments on commit 29cf8ed

Please sign in to comment.