[Zope] searching keywords with AND

Chris Withers chrisw@nipltd.com
Sun, 20 May 2001 16:10:21 +0100


marc lindahl wrote:
> 
> This construct seems to work:
> 
>   <dtml-in "portal_catalog.searchResults( {'meta_type' : 'News Item'
>                                           ,'Subject': 's1'
>                                           ,'Subject': 's2''
>                                           ,'Subject': 's3'
>                                           ,'Subject': 's4'}
>                                         , sort_on='Date'
>                                         , sort_order='reverse'
>                                         , review_state='published'
>                                         )" size="10">
> 
> seems to return something that has Subject keywords s1 AND s2 AND s3 AND s4
> (and in this example, meta_type=='News Item') -- unless I'm not testing it
> correctly!

I don't think you're testing thsi correctly. This is one of the things I'm
really looking forward to in Zope 2.4

cheers,

Chris