hooks/syncschema.py
branchstable
changeset 4806 4f12f59b1a13
parent 4722 9c13d5db03d9
child 4807 5642bfa43236
--- a/hooks/syncschema.py	Thu Mar 04 17:58:31 2010 +0100
+++ b/hooks/syncschema.py	Thu Mar 04 18:02:33 2010 +0100
@@ -1152,7 +1152,8 @@
                     source.fti_unindex_entity(session, entity.eid)
                     for container in entity.fti_containers():
                         if still_fti or container is not entity:
-                            session.repo.index_entity(session, container)
+                            source.fti_unindex_entity(session, entity.eid)
+                            source.fti_index_entity(session, container)
                 except Exception:
                     self.critical('Error while updating Full Text Index for'
                                   ' entity %s', entity.eid, exc_info=True)