i solved the first with this:
acts_as_ferret :fields => [:com
def com
self.comment == '' ? 'null' : 'comment'
end
def self.full_text_search(query)
return nil if query.nil? or (query == '')
query = "com:null"
Model.find_by_contents(query, {:limit => :all})
end
because i don't need to have the comment, so a simple 'comment' is ok...
about the join how can i do ? :(
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk