[Zope3-checkins] CVS: Zope3/lib/python/Zope/TextIndex - IIndex.py:1.2
Guido van Rossum
guido@python.org
Wed, 4 Dec 2002 03:08:38 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/TextIndex
In directory cvs.zope.org:/tmp/cvs-serv28948
Modified Files:
IIndex.py
Log Message:
Correct docs for length(). Somehow it returns the number of words,
not the number of docs. (Hmm... Maybe the code should be fixed
instead?)
[First checkin of the day from the Rotterdam sprint]
=== Zope3/lib/python/Zope/TextIndex/IIndex.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/TextIndex/IIndex.py:1.1 Tue Dec 3 09:28:15 2002
+++ Zope3/lib/python/Zope/TextIndex/IIndex.py Wed Dec 4 03:08:38 2002
@@ -20,7 +20,8 @@
"""Interface for an Index."""
def length():
- """Return the number of documents in the index."""
+ """Return the number of words in the index."""
+ # Why not the number of docs?
def get_words(docid):
"""Return a list of wordids for the given docid."""