# Ferret could't find segments file

**URL:** <https://www.ruby-forum.com/t/ferret-couldt-find-segments-file/91684>\
**Category:** Rails\
**Created:** [April 11, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/ferret-couldt-find-segments-file/91684 "2007-04-11T15:18:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fafa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/8e7dd6/32.png) [@fafa](https://www.ruby-forum.com/u/fafa)\
**Post date:** [April 11, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/ferret-couldt-find-segments-file/91684/1 "2007-04-11T15:18:42Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![fafa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/8e7dd6/32.png) [@fafa](https://www.ruby-forum.com/u/fafa)\
**Post date:** [April 11, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/ferret-couldt-find-segments-file/91684/2 "2007-04-11T22:54:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fafa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/8e7dd6/32.png) [@fafa](https://www.ruby-forum.com/u/fafa)\
**Post date:** [April 11, 2007, 11:22pm UTC](https://www.ruby-forum.com/t/ferret-couldt-find-segments-file/91684/3 "2007-04-11T23:22:51Z")

</div>

or your rebuid\_index to regenerate your indexes

---

<div class="post-metadata">

**Author:** ![fafa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/8e7dd6/32.png) [@fafa](https://www.ruby-forum.com/u/fafa)\
**Post date:** [April 12, 2007, 12:40am UTC](https://www.ruby-forum.com/t/ferret-couldt-find-segments-file/91684/4 "2007-04-12T00:40:56Z")

</div>

> 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
