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.
fafa (Guest)
on 2007-04-11 17: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...
fafa (Guest)
on 2007-04-12 00:54
I will answer to this by myself - It is neccessary to delete the folders
with indexes. You can find them in /index/development/
Rails junkie (Guest)
on 2007-04-12 01:22
(Received via mailing list)
or your rebuid_index to regenerate your indexes
Alain R. (Guest)
on 2007-04-12 02: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.