[Zope-CMF] Re: portal_catalog error in CMF 1.3b2 ?

Tres Seaver tseaver@zope.com
12 Jul 2002 12:16:47 -0400


On Fri, 2002-07-12 at 11:48, Rainer Thaden wrote:
> RT> i updated from CMF 1.3b1 to 1.3b2 recently and now i have some
> RT> mysterious behaviour when using the search engine: 
> RT> no matter what limitation i set in the search form, the search always
> RT> returns all published objects in my CMF site.
> RT> As far as i recall, it worked fine in CMF 1.3b1.
> RT> Do i have to change something in the code of my products, or is it a
> RT> bug in the new CMF?
> 
> 
> I now verified this by reinstalling CMF 1.3b1. I added two objects of
> the type 'Document', one 'published', one 'private' and did a search
> (as an anonymous user) with default settings except for the 'Item
> Type' which i set to 'Document'.
> 
> In CMF 1.3b1 only the published Document was returned.
> In CMF 1.3b2 _all_ items in my CMF instance with review_state
> 'published' were returned. 
> 
> 
> It seems that only limitation to a certain type produces an error as i
> can enter a search string or a subject, which returns correct results.
> Also 'Find new items since...' works in CMF 1.3b2.


Ah, ok;  you need to add the 'portal_type' FieldIndex to your catalog,
and reindex it;  the search form in beta2 uses it, rather than the
deprecated "Type" index (Type is now supposed to be the "human-readable"
/ "localized" title, rather than the ID, of the type object).

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com