[Zope] score in ZCatalog search results?

Kevin Teague kteague@stormix.com
Wed, 06 Dec 2000 19:10:46 -0800


> Can't seem to find word on this anywhere.  I wanted to put relevancy ranking
> into my ZCatlog search result hit-list, but am finding no info in searches
> of zope.org, ZDP, or mailing lists.

data_record_score_ is probably what you want. You could use it to do
something like:

<dtml-in "zcatalog(field=keyword)" sort=data_record_score_ reverse>
id: <dtml-var id><br>
score: <dtml-var data_record_score_><br>
<hr>
</dtml-in>

Or for a more complex example, see this page:

http://www.stormix.com/search_website_results/view_source

--
  Kevin Teague, Zopista
  http://www.stormix.com