More_like_this

Does anyone have an example of how more_like_this works in
acts_as_ferret?
I’ve tried the following…

@results = Post.find_by_contents params[:q]
@mlt = @results.more_like_this :field_names => [:subject,:body]

but get errors saying “more_like_this” is not a method of @results.

Jeff W.
[email protected]
http://boowebb.com/

Hi!

more_like_this works on a single record, not on the whole results list.

Cheers,
Jens

On Thu, Apr 10, 2008 at 09:36:32AM -0700, Jeff W. wrote:

Jeff W.
[email protected]
http://boowebb.com/


Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk


Jens Krämer
Finkenlust 14, 06449 Aschersleben, Germany
VAT Id DE251962952
http://www.jkraemer.net/ - Blog
http://www.omdb.org/ - The new free film database

big fat “duh” on my part - thanks for the quick response. :slight_smile:

On Thu, Apr 10, 2008 at 3:08 PM, Jens K. [email protected] wrote:

acts_as_ferret?

[email protected]
VAT Id DE251962952
http://www.jkraemer.net/ - Blog
http://www.omdb.org/ - The new free film database


Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Jeff W.
[email protected]
http://boowebb.com/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs