[Zope-dev] SearchIndex Splitter lowercase indexes?
Christian Robottom Reis
kiko@async.com.br
Thu, 24 May 2001 18:23:40 -0300 (BRT)
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