On Tue, May 22, 2007 at 05:30:32PM +0200, Mike Dershowitz wrote:
> Hi Ben:
> 
> Thanks so much for getting back to me.  I don't know if/how to find out 
> if two writers are looking to write the same index at the same time. 
> What it appears is that the item that needs to be deleted "goal" is an 
> indexed item, and thus ferret must do something when an indexed item 
> wants to be deleted.  That's when I get the error - it's almost as if 
> ferret is doing some good cleanup but then can't find the file to 
> cleanup.  Does ferret/acts as ferret delete an associated index when the 
> item is deleted?  If so how do I make that delete code stronger?

Yes, acts_as_ferret is all about keeping your DB and the Ferret index in
sync.

> Better yet, does recreating indexes solve the problem?  If so, I 
> didn't/don't really understand how interact with ferret such that I 
> could force it to recreate the index, if that would solve the problem, 
> so direction there would be helpful as well.

you can rebuild acts_as_ferret's index from the Rails console with

Goal.rebuild_index

And yes, rebuilding the index should solve the problem. If this happened
to you in production mode, be sure to check out acts_as_ferret's DRb server 
which will prevent problems like this.

Jens
 

-- 
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
 
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to