Commit f968ebb5 authored by Jeremy Hylton's avatar Jeremy Hylton

Use the same stop list for both indexes.

parent 138b3120
...@@ -48,10 +48,10 @@ class MySplitter: ...@@ -48,10 +48,10 @@ class MySplitter:
def make_old_index(): def make_old_index():
from Products.PluginIndexes.TextIndex.TextIndex import TextIndex from Products.PluginIndexes.TextIndex.TextIndex import TextIndex
from Products.PluginIndexes.TextIndex.Lexicon \ from Products.PluginIndexes.TextIndex.Lexicon import Lexicon
import Lexicon, stop_word_dict from Products.ZCTextIndex.StopDict import get_stopdict
l = Lexicon(stop_word_dict) l = Lexicon(get_stopdict())
l.SplitterFunc = MySplitter() l.SplitterFunc = MySplitter()
return TextIndex("read", lexicon=l) return TextIndex("read", lexicon=l)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment