summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3ee3a04)
raw | patch | inline | side by side (parent: 3ee3a04)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 9 Jul 2002 04:26:44 +0000 (04:26 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 9 Jul 2002 04:26:44 +0000 (04:26 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@841 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/indexer.py | patch | blob | history |
diff --git a/roundup/indexer.py b/roundup/indexer.py
index 096b6c6dda28b589db9d29c62a2b510269f6aaf0..d09e950d8102a1b6843ea8150d8068f8b491a7ba 100644 (file)
--- a/roundup/indexer.py
+++ b/roundup/indexer.py
# 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
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:
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] = {}
#
#$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