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

Commit

Permalink
- PluggableIndexes interface: + indexSize()
Browse files Browse the repository at this point in the history
- browser for stored values for all UnIndex derived indexes
  • Loading branch information
zopyx committed Feb 4, 2005
1 parent 52fe67c commit b37f80e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ZCTextIndex.py
Expand Up @@ -217,6 +217,10 @@ def numObjects(self):
"""Return number of unique words in the index"""
return self.index.length()

def indexSize(self):
"""Return the number of indexes objects """
return self.index.document_count()

def clear(self):
"""reinitialize the index (but not the lexicon)"""
try:
Expand Down

0 comments on commit b37f80e

Please sign in to comment.