[Zope-CVS] CVS: Products/ZCTextIndex - Index.py:1.1.2.4
Jeremy Hylton
jeremy@zope.com
Tue, 30 Apr 2002 19:06:01 -0400
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv21088
Modified Files:
Tag: TextIndexDS9-branch
Index.py
Log Message:
Remove XXX comment; the lexicon now addresses it.
=== Products/ZCTextIndex/Index.py 1.1.2.3 => 1.1.2.4 ===
def search(self, term):
- # XXX this can generate word IDs that are not in the index --
- # potential denial of service
wids = self._lexicon.termToWordIds(term)
result = IIBucket()
N = len(self._docweight)
@@ -117,7 +115,6 @@
return
del map[docid]
self._wordinfo[wid] = oldwordfreq - 1, map
-
def frequency(count):
return count