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?

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.

Thanks very much again, and in advance, for your help!

Mike

Benjamin Krause wrote:
> Hey ..
> 
>>   Parameters: {"_method"=>"delete", "action"=>"destroy", "id"=>"105",
>> "controller"=>"goals"}
> 
> i'm not sure i understand what you want to do .. if you want to clear
> your
> index, you can use Index :create => true option [1]
> 
> The error you are getting can have various reasons, like two writers
> writing the same index. Can you post a little more information about
> what you want to do and maybe the code that throws the exception?
> 
> Ben
> 
> 
> 
> [1] http://ferret.davebalmain.com/api/classes/Ferret/Index/
> IndexWriter.html


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to