[Zope] searching keywords with AND

marc lindahl marc@bowery.com
Sun, 03 Jun 2001 13:18:01 -0400


Actually I was wrong :(
It OR's the subjects in the following.... subject is a keyword index, if
that has anything to do with it.

> From: ethan mindlace fremen <mindlace@digicool.com>
> Date: Sun, 03 Jun 2001 11:39:12 -0400
> To: zope@zope.org
> Subject: Re: [Zope] searching keywords with AND
> 
> --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
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )