[Zope] Searching a Catalog in Zope 2.6.1b1
Chris Withers
chrisw@nipltd.com
Tue, 14 Jan 2003 12:08:51 +0000
Peter Bengtsson wrote:
>> What kind of index is 'email'?
>
> It's TextIndex.
>
> (Should I maybe use the new ZCTextIndex now?)
If you want, it doesn't maek a differnce.
> zcatalog = self.getCatalog()
> pluginindexes = zcatalog.Indexes.manage_addProduct['PluginIndexes']
> pluginindexes.manage_addTextIndex('email')
This code doesn't look that great. Are you sure sure 'email' is being created?
Why not just use this code?
self.getCatalog().addIndex('email','TextIndex')
cheers,
Chris