Use catalog's "reindex_doc" method
authorThierry Florac <thierry.florac@onf.fr>
Tue, 27 Jun 2017 11:57:56 +0200
changeset 94 db2826d440df
parent 93 89ac3216c5dd
child 95 83d6b58ada5f
Use catalog's "reindex_doc" method
src/pyams_content/site.py
--- a/src/pyams_content/site.py	Tue Jun 27 11:49:38 2017 +0200
+++ b/src/pyams_content/site.py	Tue Jun 27 11:57:56 2017 +0200
@@ -62,7 +62,7 @@
             intids = get_utility(IIntIds)
             for document in find_objects_providing(application, IWfSharedContent):
                 print("Indexing: {0!r}".format(document))
-                catalog.index_doc(intids.register(document), document)
+                catalog.reindex_doc(intids.register(document), document)
         finally:
             set_local_registry(None)
         transaction.commit()