[Zope-dev] How can Catalog index all parts/words of a attribute
Thomas Weholt
thomas@cintra.no
Tue, 25 Jul 2000 16:16:17 +0200
Hi,
I try to use Catalog with a object stored in ZODB3. I need to match single
words in attributes in what might be a long string with several words in it.
I've tried to set "self.cat.addIndex('name' ,'TextIndex' )" which is
supposed to be full text searching at least said to be in the Zope-pages
when creating a catalog in Zope. But when I try to search for objects they
only return stuff if I enter the entire content of the attribute in
question, not parts of it. This is not a Zope-product yet, but a foundation
for a future product. I'm working on a full-text searching command-line
interface, so nothing of this can be done thru Zopes web-interface at this
point.
the code has been posted earlier, in "Now; - problems using ZODB/ZCatalog in
Python". Any quick hints?
Thomas