changeset 827:0a2c1f5e0e5a

We're indexing numbers now, and _underscore words
author Richard Jones <richard@users.sourceforge.net>
date Tue, 09 Jul 2002 04:26:44 +0000
parents 6d7a45c8464a
children c01725aebebb
files roundup/indexer.py
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/indexer.py	Tue Jul 09 04:19:09 2002 +0000
+++ b/roundup/indexer.py	Tue Jul 09 04:26:44 2002 +0000
@@ -14,7 +14,7 @@
 #     that promote freedom, but obviously am giving up any rights
 #     to compel such.
 # 
-#$Id: indexer.py,v 1.5 2002-07-09 04:19:09 richard Exp $
+#$Id: indexer.py,v 1.6 2002-07-09 04:26:44 richard Exp $
 '''
 This module provides an indexer class, RoundupIndexer, that stores text
 indices in a roundup instance.  This class makes searching the content of
@@ -202,7 +202,7 @@
             return {}
         return hits
 
-    segments = "ABCDEFGHIJKLMNOPQRSTUVWXYZ#-!"
+    segments = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ#_-!"
     def load_index(self, reload=0, wordlist=None):
         # Unless reload is indicated, do not load twice
         if self.index_loaded() and not reload:
@@ -263,7 +263,7 @@
         open(self.indexdb+'-','wb').write(zlib.compress(marshal.dumps(dbfil)))
 
         # The hard part is splitting the word dictionary up, of course
-        letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ#"
+        letters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ#_"
         segdicts = {}                           # Need batch of empty dicts
         for segment in letters:
             segdicts[segment] = {}
@@ -301,6 +301,11 @@
 
 #
 #$Log: not supported by cvs2svn $
+#Revision 1.5  2002/07/09 04:19:09  richard
+#Added reindex command to roundup-admin.
+#Fixed reindex on first access.
+#Also fixed reindexing of entries that change.
+#
 #Revision 1.4  2002/07/09 03:02:52  richard
 #More indexer work:
 #- all String properties may now be indexed too. Currently there's a bit of

Roundup Issue Tracker: http://roundup-tracker.org/