summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 97e6339)
raw | patch | inline | side by side (parent: 97e6339)
| author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
| Tue, 14 Jan 2003 03:56:44 +0000 (03:56 +0000) | ||
| committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
| Tue, 14 Jan 2003 03:56:44 +0000 (03:56 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1452 57a73879-2fb5-44c3-a270-3262357dd7e2
| roundup/indexer.py | patch | blob | history |
diff --git a/roundup/indexer.py b/roundup/indexer.py
index 4c8b913e273eaab43a2d85bbd48a2dbbb9e3a044..ef697d938f968bb475c57026124f45ad64fdfcfd 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.15 2003-01-12 23:53:19 richard Exp $
+#$Id: indexer.py,v 1.16 2003-01-14 03:56: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
# word outside the bounds of what we index - ignore
continue
word = word.upper()
- entry = self.words[word] # For each word, get index
- entries[word] = entry # of matching files
- if not entry: # Nothing for this one word (fail)
+ entry = self.words.get(word) # For each word, get index
+ entries[word] = entry # of matching files
+ if not entry: # Nothing for this one word (fail)
return {}
if hits is None:
hits = {}