[Zope-CVS] CVS: Products/ZCTextIndex - ZCTextIndex.py:1.13
Guido van Rossum
guido@python.org
Thu, 16 May 2002 13:17:54 -0400
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv25731
Modified Files:
ZCTextIndex.py
Log Message:
Rename the Index classes to OkapiIndex and CosineIndex, respectively.
=== Products/ZCTextIndex/ZCTextIndex.py 1.12 => 1.13 ===
from Products.PluginIndexes.common.util import parseIndexRequest
-from Products.ZCTextIndex.OkapiIndex import Index
+from Products.ZCTextIndex.OkapiIndex import OkapiIndex
from Products.ZCTextIndex.ILexicon import ILexicon
from Products.ZCTextIndex.Lexicon \
import Lexicon, Splitter, CaseNormalizer, StopWordRemover
@@ -47,7 +47,7 @@
query_options = ['query']
- def __init__(self, id, extra, caller, index_factory=Index):
+ def __init__(self, id, extra, caller, index_factory=OkapiIndex):
self.id = id
self._fieldname = extra.doc_attr
lexicon = getattr(caller, extra.lexicon_id, None)