[Zope-dev] ZCatalog Lazy Results

Johan Carlsson johanc@torped.se
Thu, 22 Feb 2001 11:02:46 +0100


> Casey Duncan <casey_duncan@yahoo.com> wrote:
> >=20
> > Yes, you always get all the meta-data. However, does
> > anyone know how the "used" argument of
> > ZCatalog.searchResults works, or why you would use it?
>=20
> 'used' tells you the names of the indexes which actually
> participated in the search (as distinct from those you
> asked for).

What does this meen?

Example, What's the different between:

  searchResults(used=3D(index1,index2), index1=3D'kalle', =
index2=3D'kaviar')

and;

  searchResults(index1=3D'kalle', index2=3D'kaviar')


(Are used supposed to be a tuple?)

TIA,
Johan Carlsson