[Zope] score in ZCatalog search results?

2000-12-06 Thread sean . upton

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.

I've also tried guessing and reading code (in lib/python/SearchIndex), but
my brain is melting.

Any enlightenment here would be greatly appreciated.

Sean

=
Sean Upton
Senior Programmer/Analyst
SignOnSanDiego.com
The San Diego Union-Tribune
619.718.5241
[EMAIL PROTECTED]
=

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] score in ZCatalog search results?

2000-12-06 Thread Kevin Teague


 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 idbr
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

___
Zope maillist  -  [EMAIL PROTECTED]
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 )