Now it works...don't ask why. I'll try to explain what I did, perhaps
you'll find the error:

Created a rails model:

class Article < ActiveRecord::Base
  acts_as_ferret :fields => [:normalized_text],
    :analyzer => HTMLAnalyzer.new
end

-filled in the data. Found docs that I should use :store
-called Article.delete_all on the rails console
-rewrote article.rb :

class Article < ActiveRecord::Base
  acts_as_ferret :fields => { :normalized_text => {:store => :yes }},
    :analyzer => HTMLAnalyzer.new
end

-fill in the data (highlight didn't work)
-did Article.delete_all again
-rm RAILS_ROOT/index/article/*
-fill in the data
-highlight works

Thanks
Peter

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

Reply via email to