[Zope] Need ZCatalog help

Michel Pelletier michel@digicool.com
Fri, 10 Sep 1999 10:05:00 -0400


Martijn Pieters wrote:
> 
> > 
> So, if you have an index on an integer value, called 'level', and you ask
> for {'level': 10, 'level_usage': 'range:max'} you'll get all objects whose
> 'level' property is 10 or lower. If I only ask for {'level': 10} I only get
> objects whose level is exactly 10. Note that if I use {'level': (1, 2, 3,
> 4), 'level_usage': 'range:min:max'} I'll get all objects with a level from
> 1 to 4.

Really?  I thought that should be: 

{'level': (1, 4), 'level_usage': 'range:min:max'}

> Next to specifying fields and their search criteria, I can also influence
> the  order of the returned objects with the 'sort-on' and 'sort-order'
> parameters.
> 
> If you specify 'sort-on', it should be the name of the index on which the
> results will be sorted. Note that at this moment, due to a bug you
> cannot  sort on a FieldIndex!

This is known and will be fixed in the next release.

-Michel