Hi,

I've been having a problem getting highlighting to work with aaf.

I have a class defined as follows such:

class Link < ActiveRecord::Base
  acts_as_ferret :fields => { :description => { :store => :yes } }
end

I get back the correct results when I do Link.find_by_contents, however,
I'd like to highlight them.

If I do something like iterate through the list of results and call
result.highlight("myquery", :field => :description), but this is
returning nil for each result. How is this possible if these results are
correctly returned because "myquery" is a token in their description? Am
I incorrectly using the api?

Thanks for the help,
Ben

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

Reply via email to