[Zope] searching keywords with AND
ethan mindlace fremen
mindlace@digicool.com
Sun, 03 Jun 2001 11:39:12 -0400
--On 05/19/01 16:36:57 -0400 marc lindahl chiseled:
> 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">
implicit anding for text indexes has been part of the catalog since 2.3.1,
i think:
http://www.zope.org/SiteIndex/search/view_source
basically, add textindex_operator='and' to your searchResults keywords...
--
-mindlace-
zopatista community liason