diff MoinMoin/script/index/build.py @ 946:72aeb2ba133d

support complete rebuild of the index
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Fri, 14 Jul 2006 15:12:34 +0200
parents 45e286183872
children 41f6f7708466
line wrap: on
line diff
--- a/MoinMoin/script/index/build.py	Fri Jul 14 13:17:15 2006 +0200
+++ b/MoinMoin/script/index/build.py	Fri Jul 14 15:12:34 2006 +0200
@@ -22,7 +22,7 @@
         )
         self.parser.add_option(
             "--mode", metavar="MODE", dest="mode",
-            help="either add (unconditionally add to index) or update (update an existing index)"
+            help="either add (unconditionally add to index), update (update an existing index) or rebuild (remove and add)"
         )
     
     def mainloop(self):
@@ -40,5 +40,4 @@
     def command(self):
         from MoinMoin.search.Xapian import Index
         Index(self.request).indexPages(self.files, self.options.mode)
-        #Index(self.request).test(self.request)