[Zope-CVS] CVS: Products/ZCTextIndex/tests - mhindex.py:1.5
Guido van Rossum
guido@python.org
Thu, 16 May 2002 13:17:55 -0400
Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv25731/tests
Modified Files:
mhindex.py
Log Message:
Rename the Index classes to OkapiIndex and CosineIndex, respectively.
=== Products/ZCTextIndex/tests/mhindex.py 1.4 => 1.5 ===
from Products.ZCTextIndex.NBest import NBest
-from Products.ZCTextIndex.OkapiIndex import OkapiIndex as Index
+from Products.ZCTextIndex.OkapiIndex import OkapiIndex
from Products.ZCTextIndex.Lexicon import Lexicon, Splitter
from Products.ZCTextIndex.Lexicon import CaseNormalizer, StopWordRemover
from Products.ZCTextIndex.QueryParser import QueryParser
@@ -382,7 +382,7 @@
def __init__(self):
self.lexicon = Lexicon(Splitter(), CaseNormalizer(), StopWordRemover())
- self.index = Index(self.lexicon)
+ self.index = OkapiIndex(self.lexicon)
def index_text(self, docid, text):
self.index.index_doc(docid, text)