Hi Andreas, Thanks for your reply; the Zope Book (online version) is indeed very helpful. However, even though it does say that the results are returned in weighted order, I cannot find a way to display those *weights*. Hence my question. | For results that include a text index, your results will be returned | in order of revelance of the text search. That is, the result set will | be sorted based how often search words appear in the indexes. A | search for the word frog against a text index will give priority | toward an object that uses that word many times compared with an | object that uses that fewer. This is a simplified version of the way | that many web search engines work: the more "relevant" your keywords | are to an item, the higher its ordering in the results. In particular, | with the ZCTextIndex, you have a choice between two algorithms for how | to weight the sorting: Okapi: is the best general choice... --- Andreas Jung <andreas@andreas-jung.com> wrote:
Have you checked out the documentation in the Zope Book?? -aj
--On Freitag, 23. April 2004 15:28 Uhr -0700 Roy Mathew <roymath@yahoo.com> wrote:
Folks,
I notice that the documentation asks that ZCTextIndex be used in place of TextIndex. Does anyone have any examples of python code for querying a ZCTextIndex field in a ZCatalog, and presenting the results and their weights?
Thanks in advance for any insight. Roy.
__________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25� http://photos.yahoo.com/ph/print_splash
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
__________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25� http://photos.yahoo.com/ph/print_splash