[Zope-Checkins] CVS: Zope2 - TextIndex.py:1.7

chrism@serenade.digicool.com chrism@serenade.digicool.com
Fri, 15 Jun 2001 06:12:05 -0400


Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/TextIndex
In directory serenade:/home/chrism/BackTalk/lib/python/Products/PluginIndexes/TextIndex

Modified Files:
	TextIndex.py 
Log Message:
Removed assignment to wordMap that called lexicon.items() in getEntryForObject.  It was a nonsensical call that must have been detritus from the various overhauls done over time.  Also changed two comments to two methods so they properly say what they're doing.  Thanks to Erik Enge for the bugreports.


--- Updated File TextIndex.py in package Zope2 --
--- TextIndex.py	2001/06/05 13:00:14	1.6
+++ TextIndex.py	2001/06/15 10:12:04	1.7
@@ -270,7 +270,6 @@
 
         This takes the objects record ID as it's main argument."""
 
-        wordMap = self.getLexicon()._lexicon.items()
         results = self._unindex.get(rid, None)
 
         if results is None:
@@ -287,8 +286,8 @@
         the number of entries as follows:
 
             1      tuple
-            2-4    dictionary
-            5+     bucket.
+            2-3    dictionary
+            4+     bucket.
         """
 
         index=self._index
@@ -333,7 +332,7 @@
         """ Index an object:
         'documentId' is the integer id of the document
         
-        'obj' is the objects to be indexed
+        'obj' is the object to be indexed
 
         'threshold' is the number of words to process between
         commiting subtransactions.  If 'None' subtransactions are