equal
deleted
inserted
replaced
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 |