From 17a238dec7af54fd4b010972db9ebb6aa1210e63 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 13 Jan 2015 17:04:35 -0400 Subject: [PATCH] Don't delete the actual index definitions --- mayan/apps/document_indexing/tools.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/mayan/apps/document_indexing/tools.py b/mayan/apps/document_indexing/tools.py index 5f5dc27ba9..f0517e2488 100644 --- a/mayan/apps/document_indexing/tools.py +++ b/mayan/apps/document_indexing/tools.py @@ -10,9 +10,6 @@ def do_rebuild_all_indexes(): for instance_node in IndexInstanceNode.objects.all(): instance_node.delete() - for index in Index.objects.all(): - index.delete() - for document in Document.objects.all(): # TODO: Launch all concurrently as background tasks index_document(document)