Ferret could't find segments file


#1

Hi, I’ve reinstalled ferret and acts_as_ferret on windows to versions
0.11.4 and 0.40 respectively.
And, I get this error message:

File Not Found Error occured:
couldn’t find segments file

Can someone help me with this? Moreover, I reinstalled ferret, because I
had some problems - after some search actions my application got broken

  • I was getting errors in my layout files… But this happened only
    after search actions, so I tried to reinstall ferret and another problem
    occurred.

Thanks for help…


#2

I will answer to this by myself - It is neccessary to delete the folders
with indexes. You can find them in /index/development/


#3

or your rebuid_index to regenerate your indexes


#4

or your rebuid_index to regenerate your indexes

1/ Locate all the classes that ‘acts_as_ferret’, and

2/ write a rake task like :

namespace :ferret do
desc “rebuid the ferret indexes”
task :rebuild => :environment do
[Foo, Bar].each{|klass|
puts “rebuilding the Ferret /#{RAILS_ENV}/ index for :
#{klass}…”
klass.rebuild_index
puts " done."
}
end
end