[Zope] Searching a Catalog in Zope 2.6.1b1
Peter Bengtsson
mail@peterbe.com
Mon, 13 Jan 2003 13:33:16 +0000
At 18:26 2003-01-09 +0000, Chris Withers wrote:
>Peter Bengtsson wrote:
>># ...in Zope 2.6.1b1
>>print len(results2) # returns 25, i.e. as if the 'email' index is ignored!!!
>>Why this strange behaviour? A bug in Zope2.6.1b1 ?
>
>What kind of index is 'email'?
It's TextIndex.
(Should I maybe use the new ZCTextIndex now?)
zcatalog = self.getCatalog()
pluginindexes = zcatalog.Indexes.manage_addProduct['PluginIndexes']
pluginindexes.manage_addTextIndex('email')
>cheers,
>
>Chris