On Wed, May 02, 2007 at 01:34:30PM +0200, Steven Garcia wrote: > Is there a way I can get ferret to give the highest ranking to an > exact term match? > > The problem I have right now is that I am searching both title and > body fields, so even if I boost the title field, if the body has more > instances of the query, then it gets pushed up in rank. > > I would like for ferret to put exact matches (of the title field) at > the very top of the pile, so if I do a search for say "color", the > results look like this > > • Color > • Color Theory > • Color Management > > Right now the order is like this > > • Color Theory > • Color Management > • Color > > Because the first two articles have more instances in the body field. > > Is this possible?
If setting the boost for the title field really high (and the one for the body really low, maybe even below 1) doesn't help, you could run the query twice, once against the title field only, and once against the body. Jens -- Jens Krämer webit! Gesellschaft für neue Medien mbH Schnorrstraße 76 | 01069 Dresden Telefon +49 351 46766-0 | Telefax +49 351 46766-66 [EMAIL PROTECTED] | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

