Skip to content

Commit

Permalink
added a hook for CJK processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
retsu committed Oct 2, 2009
1 parent 2695d57 commit a374385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Products/ZCTextIndex/Lexicon.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def sourceToWordIds(self, text):
def termToWordIds(self, text):
last = _text2list(text)
for element in self._pipeline:
last = element.process(last)
process = getattr(element, "process_post_glob", element.process)
last = process(last)
wids = []
for word in last:
wids.append(self._wids.get(word, 0))
Expand Down

0 comments on commit a374385

Please sign in to comment.