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
_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )