Forum: Ruby on Rails ferret could't find segments file

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B04a553de1b8b45433b841bba440cc42?d=identicon&s=25 fafa (Guest)
on 2007-04-11 15:18
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...
B04a553de1b8b45433b841bba440cc42?d=identicon&s=25 fafa (Guest)
on 2007-04-11 22:54
I will answer to this by myself - It is neccessary to delete the folders
with indexes. You can find them in /index/development/
D12eb3135791d642b4bc46b9d04dc034?d=identicon&s=25 Rails junkie (Guest)
on 2007-04-11 23:22
(Received via mailing list)
or your rebuid_index to regenerate your indexes
Ba3a00606eb530dcab2c4a6a59bf366d?d=identicon&s=25 Alain Ravet (Guest)
on 2007-04-12 00:40
(Received via mailing list)
> 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
This topic is locked and can not be replied to.