[Zope-CVS] CVS: Products/ZCTextIndex - BaseIndex.py:1.17
Guido van Rossum
guido@python.org
Tue, 21 May 2002 11:18:34 -0400
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv18717
Modified Files:
BaseIndex.py
Log Message:
length() is used by ZCTextIndex.numWords() -- it is supposed to return
the number of words in the index (at least to return a number
comparable to the number displayed under "# objects" by TextIndex).
=== Products/ZCTextIndex/BaseIndex.py 1.16 => 1.17 ===
def length(self):
- """Return the number of documents in the index."""
- return len(self._docwords)
+ """Return the number of words in the index."""
+ return len(self._wordinfo)
def get_words(self, docid):
"""Returns the wordids for a given docid"""