I am using document boosting (following Jens'' suggestion here: http://www.ruby-forum.com/topic/84358) but am also trying to sort the returned results, so I was using the :sort option. In my testing, using a wildcard search, it appears that using the :sort option causes Ferret to ignore document boosts and just return the first N hits it finds by looking alphabetically. Is that the expected behavior? If I want the N most relevant documents, do I need to sort them myself after getting them from Ferret? Thanks, --Paul -- Posted via http://www.ruby-forum.com/.
Jens Krämer
2009-Mar-10 17:55 UTC
[Ferret-talk] Are document boost and sort incompatible?
Hi Paul, I think your assumption is correct - Ferret by default sorts by score, and by specifying an alternative sorting you replace that default sorting with something else. Cheers, Jens On 10.03.2009, at 18:28, Paul Lynch wrote:> I am using document boosting (following Jens'' suggestion here: > http://www.ruby-forum.com/topic/84358) but am also trying to sort the > returned results, so I was using the :sort option. In my testing, > using > a wildcard search, it appears that using the :sort option causes > Ferret > to ignore document boosts and just return the first N hits it finds by > looking alphabetically. Is that the expected behavior? If I want > the N > most relevant documents, do I need to sort them myself after getting > them from Ferret? > > Thanks, > --Paul > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk >-- Jens Kr?mer webit! Gesellschaft f?r neue Medien mbH Schnorrstra?e 76 | 01069 Dresden Telefon +49351467660 | Telefax +493514676666 kraemer at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://rubyforge.org/pipermail/ferret-talk/attachments/20090310/ffcb5057/attachment.bin>