[Zope] ZCatalog: searching with OR

Andreas Jung Andreas Jung <lists@andreas-jung.com>
Tue, 11 Feb 2003 06:12:50 +0100


res = searchResults(query1...) + searchResults(query2...)

--On Dienstag, 11. Februar 2003 12:45 +1300 Chris Beaven 
<chris@d-designz.co.nz> wrote:

> Is there any way to seach a catalog for either column1 = 'something' OR
> column2 = 'something' ?
>
> searchResults(column1='something', column2='something')
> Only returns results when 'something' is in both column1 AND column2
>
> I could combine 2 results but then they won't be weighted correctly...
>
> Have I got any other options?
>
>
> _______________________________________________
> 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 )




    ---------------------------------------------------------------------
   -    Andreas Jung                     http://www.andreas-jung.com   -
  -   EMail: andreas at andreas-jung.com                              -
   -            "Life is too short to (re)write parsers"               -
    ---------------------------------------------------------------------