[Zope-dev] ZCatalog

Michel Pelletier michel@digicool.com
Wed, 08 Mar 2000 11:18:03 -0800


Tom Deprez wrote:
> 
> Is there a way to see which keywords, etc are indexed in a catalog?

Yes.
 
> eg. Let's say I indexed the title of a class and now I want to see all the
> titles  in the catalog (so I can see if I'm programming correctly)

If it's a Field Index, you can use uniqueValuesFor('indexname').  Text
indexes do not support this notion because their unique values map to
integers.  What maps those integers back to words are Vocabulary
objects, which can be queried for all of their words.

-Michel