Hello.

I'm trying to use acts_as_ferret to index with set conditions.

Ideally I could do something like:

 acts_as_ferret :fields => [ :title, :body ],
                :conditions => ["enabled = 1"]

But would settle for being able to do:

 @similiar_blogs = @blog.more_like_this :field_names => [ :title, :body
], :conditions => "enabled=1"

What is the best way of accomplishing this with using more_like_this, or
even better -- applying these conditions to the model to be indexed
globally.

Thanks in advance for any advice or suggestions.

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to