[Zope] Searching for a range or a value

Dieter Maurer dieter at handshake.de
Sat Aug 16 05:09:08 EDT 2008


Andrea Ratto wrote at 2008-8-14 10:25 +0200:
>I am trying to search for items with an attribute (a price) in a defined
>range, but I also need to match those which have None in that attribute.
>
>The index is a FieldIndex, Zope is at version 2.10
>
>Is there any way to do that without doing two separated queries or
>installing specific Products?

One of your options is to forget the restricted ZCatalog API
and use "AdvanceQuery" instead.

It has a "Between" query for your use case (and many other features
and removed bugs).



-- 
Dieter


More information about the Zope mailing list