[Zope-CVS] CVS: Products/ZCTextIndex - ZCTextIndex.py:1.1.2.6
Jeremy Hylton
jeremy@zope.com
Thu, 2 May 2002 11:56:38 -0400
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv28026
Modified Files:
Tag: TextIndexDS9-branch
ZCTextIndex.py
Log Message:
Wrap ZopeSplitter in ZCTextIndex.Splitter.
=== Products/ZCTextIndex/ZCTextIndex.py 1.1.2.5 => 1.1.2.6 ===
from Products.ZCTextIndex.QueryEngine import QueryEngine
from Products.ZCTextIndex.QueryParser import QueryParser
+from Products.ZCTextIndex.Splitter import Splitter
from Products.PluginIndexes.TextIndex.Splitter.ZopeSplitter.ZopeSplitter \
import ZopeSplitter
@@ -17,7 +18,7 @@
__implements__ = PluggableIndexInterface
def __init__(self, doc_attr="text"):
- self.lexicon = Lexicon(ZopeSplitter)
+ self.lexicon = Lexicon(Splitter(ZopeSplitter))
self.engine = QueryEngine()
self.index = Index(self.lexicon, doc_attr)
self.parser = QueryParser()