[Zope-CVS] CVS: Products/ZCTextIndex - OkapiIndex.py:1.8

Tim Peters tim.one@comcast.net
Wed, 15 May 2002 21:36:14 -0400


Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv15155

Modified Files:
	OkapiIndex.py 
Log Message:
testIndex.py now runs exactly the same tests on both the cosine indexer
and the Okapi indexer.  testZCTextIndex was, and remains, strongly tied
to the cosine indexer.


=== Products/ZCTextIndex/OkapiIndex.py 1.7 => 1.8 ===
         self._wordinfo[wid] = map # Not redundant, because of Persistency!
 
+    # Used only by tests.
+    def _get_undoinfo(self, docid):
+        return WidCode.decode(self._docwords[docid])
+
 def inverse_doc_frequency(term_count, num_items):
     """Return the inverse doc frequency for a term,