Find by contents and missing ferret_score method

Hi,

i m using acts as ferret via the find_by_contents, and then i my trying
to get the score of each results…
But the score of ferret_score method is missing…

I ve got the @total_hits in the array, but not the @score one :confused:

What s going on ?
Is this method disappear in acts_as_ferret ?

thanks

Guillaume.

You’re looking for “ferret_score”. Each object returned by
find_by_contents has that method available.

Thanks,

Doug

Well my problem is that there is not :confused:

I can assure you !!!
i do :

@videos = Video.find_by_contents(mystuff)

and then if i do
for video in @video
video.ferret_score
end

i get : undefined method `ferret_score’ for #Video:0x324ef5c

any clues ?

Thanks for you reply

Well, the very similar code works for me. What version of things are
you using? I’m using:

Ruby 1.8.6
Rails 1.2.3
Ferret 0.11.4
acts_as_ferret 0.4.1

Thanks,

Doug

FOUND THE PROBLEM !!!

Do not use acts_as_ferret gem !!!..

thanks doug…

Doug S. wrote:

Well, the very similar code works for me. What version of things are
you using? I’m using:

Ruby 1.8.6
Rails 1.2.3
Ferret 0.11.4
acts_as_ferret 0.4.1

Thanks,

Doug

On Fri, Sep 07, 2007 at 09:20:18AM +0200, Guillaume Differenthink wrote:

FOUND THE PROBLEM !!!

Do not use acts_as_ferret gem !!!..

this should work with the gem, too, if you have the most recent version
(0.4.1) of it installed.

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