Just write a Python script called "PrincipiaSearchSource" that returns all the text you want to be searchable. I think that will work, but I have not tried it. I have tried, however, to write an external Python method called "PrincipiaSearchSource" that returns my what I want to search on. like this: def PrincipiaSearchSource(): return self.title + ' ' + self.summary + ' ' + self.STX_body I belive a Python Script will work the same way. regards Max M Max M. W. Rasmussen, Denmark. New Media Director private: maxmcorp@worldonline.dk work: maxm@normik.dk ----------------------------------------------------- Shipping software is an unnatural act
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Frank Sonnemans Sent: Wednesday, July 25, 2001 3:33 PM To: zope@zope.org Subject: [Zope] Adding text properties of a ZClass to PrincipiaSearchSource
I created some custom ZClass objects to publish Press Releases and News Items on our website. Since the submitters are nontechnical the objects use a large text property (STX_body) to hold the main text in structured text format.
How can I add this STX_body property to the PrincipiaSearchSource?
I would like to keep the site search simple by just doing a lookup on the PrincipiaSearchSource index. I would hate to have to create additional queries for other objects I created.
Regards,
Frank
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )