[Zope-Checkins]
SVN: Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/ZCTextIndex/ZCTextIndex.py
added indexSize()
Andreas Jung
andreas at andreas-jung.com
Fri Feb 4 12:35:18 EST 2005
Log message for revision 29038:
added indexSize()
Changed:
U Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/ZCTextIndex/ZCTextIndex.py
-=-
Modified: Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/ZCTextIndex/ZCTextIndex.py
===================================================================
--- Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/ZCTextIndex/ZCTextIndex.py 2005-02-04 17:22:29 UTC (rev 29037)
+++ Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/ZCTextIndex/ZCTextIndex.py 2005-02-04 17:35:18 UTC (rev 29038)
@@ -217,6 +217,10 @@
"""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:
More information about the Zope-Checkins
mailing list