[Zope-CMF] how to create an indexed attribute programmatically?

Gerry Kirk gerry at faithonline.com
Fri Jan 23 08:29:19 EST 2004


Actually, Chris, that isn't true always. I have a FieldIndex called
Title_sort that indexes the Title field. I have another TextIndexNG2
index called Title.

If only I can figure out how to create it programmatically... I can do
it through the web.

Gerry

> -----Original Message-----
> From: Chris Withers [mailto:chris at simplistix.co.uk] 
> Sent: January 23, 2004 4:39 AM
> To: Gerry Kirk
> Cc: srl at boston.com; zope-cmf at zope.org
> Subject: Re: [Zope-CMF] how to create an indexed attribute 
> programmatically?
> 
> 
> Gerry Kirk wrote:
> 
> > The index is there, but in the ZMI, it's not showing that 
> there is an 
> > indexed attribute. It's showing the index name and type, 
> but not the 
> > indexed attribute.
> 
> FieldIndexes use the name of the index as the name of the 
> attribute to be indexed.
> 
> cheers,
> 
> Chris
> 




More information about the Zope-CMF mailing list