Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
length() is used by ZCTextIndex.numWords() -- it is supposed to return
Browse files Browse the repository at this point in the history
the number of words in the index (at least to return a number
comparable to the number displayed under "# objects" by TextIndex).
  • Loading branch information
gvanrossum committed May 21, 2002
1 parent 58f0430 commit 6c372bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BaseIndex.py
Expand Up @@ -82,8 +82,8 @@ def __init__(self, lexicon):
self._docwords = IOBTree()

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"""
Expand Down

0 comments on commit 6c372bb

Please sign in to comment.