On Fri, 2005-05-20 at 12:41 +0200, Garito wrote:
> Hi all
> 
> I have a ZCatalog object with a keywordindex called keywords
> 
> I would like to search some objects with keywords ['k1', 'k2', k3', 
> 'k4'] for that I use:
> 
> return context.catalog({'keywords': {'query': ['k1', 'k2', k3', 'k4'], 
> 'operator': 'and'}})
> 
> but these query returns objects with keyword = ['k2', 'k3'] (for me 
> incorrect, I would like to find objects with *all* keywords

Do you mean you'd like to find objects that have *all* of the keywords
in the query list or do you mean you'd like to find objects with *any*
of the keywords in the query list?  Can you give an example of two or
three objects, their keywords, a query, and the desired results?

- C


_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to