hooks/syncschema.py
branchstable
changeset 4806 4f12f59b1a13
parent 4722 9c13d5db03d9
child 4807 5642bfa43236
equal deleted inserted replaced
4805:2d0aa2b7da02 4806:4f12f59b1a13
  1150             for entity in rset.entities():
  1150             for entity in rset.entities():
  1151                 try:
  1151                 try:
  1152                     source.fti_unindex_entity(session, entity.eid)
  1152                     source.fti_unindex_entity(session, entity.eid)
  1153                     for container in entity.fti_containers():
  1153                     for container in entity.fti_containers():
  1154                         if still_fti or container is not entity:
  1154                         if still_fti or container is not entity:
  1155                             session.repo.index_entity(session, container)
  1155                             source.fti_unindex_entity(session, entity.eid)
       
  1156                             source.fti_index_entity(session, container)
  1156                 except Exception:
  1157                 except Exception:
  1157                     self.critical('Error while updating Full Text Index for'
  1158                     self.critical('Error while updating Full Text Index for'
  1158                                   ' entity %s', entity.eid, exc_info=True)
  1159                                   ' entity %s', entity.eid, exc_info=True)
  1159         if len(to_reindex):
  1160         if len(to_reindex):
  1160             # Transaction have already been committed
  1161             # Transaction have already been committed