24 May
2001
24 May
'01
9:23 p.m.
Hi, I've been testing SearchIndex's Splitter here, and I'm finding the behaviour only a tiny bit strange: it converts the words it splits to lowercase. Is this intentional? Example:
import SearchIndex.Splitter import SearchIndex.Lexicon s = SearchIndex.Splitter.Splitter("Foo Bar Baz", SearchIndex.Lexicon.stop_word_dict) s[0] 'foo' s.indexes('foo') [0]
Why does this happen? It makes TextIndex's position() call behave unexpectedly until you do some tests with the Splitter itself! Take care, -- /\/\ Christian Reis, Senior Engineer, Async Open Source, Brazil ~\/~ http://async.com.br/~kiko/ | [+55 16] 274 4311