Skip to content

Commit 5522e8f

Browse files
author
Richard Jones
committed
merge from maint branch
1 parent 1c9e5d1 commit 5522e8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/backends/indexer_rdbms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: indexer_rdbms.py,v 1.10 2005-05-22 17:55:00 a1s Exp $
1+
#$Id: indexer_rdbms.py,v 1.11 2005-09-28 05:42:23 richard Exp $
22
''' This implements the full-text indexer over two RDBMS tables. The first
33
is a mapping of words to occurance IDs. The second maps the IDs to (Class,
44
propname, itemid) instances.
@@ -62,8 +62,8 @@ def add_text(self, identifier, text, mime_type='text/plain'):
6262
for w in re.findall(r'(?u)\b\w{2,25}\b', text)]
6363
words = {}
6464
for word in wordlist:
65-
if is_stopword(word):
66-
continue
65+
if is_stopword(word): continue
66+
if len(word) > 25: continue
6767
words[word] = 1
6868
words = words.keys()
6969

0 commit comments

Comments
 (0)