diff --git a/mayan/apps/document_indexing/tools.py b/mayan/apps/document_indexing/tools.py index 641e21dab4..5f5dc27ba9 100644 --- a/mayan/apps/document_indexing/tools.py +++ b/mayan/apps/document_indexing/tools.py @@ -2,7 +2,7 @@ from __future__ import absolute_import from documents.models import Document -from .api import update_indexes +from .api import index_document from .models import Index, IndexInstanceNode @@ -15,4 +15,4 @@ def do_rebuild_all_indexes(): for document in Document.objects.all(): # TODO: Launch all concurrently as background tasks - update_indexes(document) + index_document(document)