[Zope-dev] How to choose: Or, Not and And when using searchResults().

Chris Withers chrisw@nipltd.com
Thu, 19 Apr 2001 10:12:28 +0100


Chris McDonough wrote:
> 
> <dtml-in "Catalog(textindex='foo' AND fieldindex='bar' OR
> keywordindex=['flop'])">
> 

Chris, how hard would it be to expose ZCatalog's set lazy union and intersection
operators?
IIRC, ZCatalog does a lot of this internally so it shouldn't be that hard to do?
(right?! ;-)

If you could expose it, then you could construct the above query as:

<dtml-in
"Catalog.OR(Catalog.AND(Catalog(textindex='foo'),Catalog(fieldindex='bar')),Catalog(keywordindex=['flop']))">

Could this be done easily?

cheers,

Chris