[Zope-dev] Keyword Indexes in ZCatalogs

Alexandre Ratti alex@gabuzomeu.net
Sun, 21 Nov 1999 21:37:43 +0100


Hello,


Thanks for this information. I tested Keyword indexes in a simple keyword 
search form for ZClass documents. It works beautifully. I'll summarize it 
in a mini-howto.


Cheers.

Alexandre


At 11:56 21/11/1999 +1100, Stuart 'Zen' Bishop wrote:
> > Could someone explain how to use Keyword Indexes in ZCatalogs? In a
> > ZCatalog, we now have 3 index types: Text Index, Field Indexes and Keyword
> > Indexes.
(snip)

>I have a ZClass with a 'lines' type property (a list) called course_logs
>
>If I then search using:
>     <dtml-in "Catalog(course_logs='Feedback')">
>This returns all catalog entrys which contain 'Feedback' as one
>of the course_logs elements. This is essential for building many-many
>relationships.
>
>--
>  ___
>    //     Zen (alias Stuart Bishop)     Work: zen@cs.rmit.edu.au
>   // E N  Senior Systems Alchemist      Play: zen@shangri-la.dropbear.id.au
>  //__     Computer Science, RMIT        WWW: http://www.cs.rmit.edu.au/~zen