On 8/25/06, Jens Kraemer <[EMAIL PROTECTED]> wrote: > On Thu, Aug 24, 2006 at 09:47:04PM +0200, Raul Murciano wrote: > > Well, It seems to work simply replacing this line (203) on > > /ferret-0.10.0/lib/ferret/index.rb: > > > > @writer.commit # original > > @writer.commit if @writer # patched > > I might be wrong but this doesn't look ok to me, because it prevents > the change the index class intends to make to the index from being > written.
Actually, as the code is now, I think Raul's patch will also work. I would expect the error to be happening when :auto_flush is set to true which would cause @writer to be closed after the delete method has been called. The commit isn't necessary if @writer has already been closed since a commit happens automatically when the writer is closed. It made me realize that I may as well call @writer's delete method directly in the add_document method. Thank you both of you. Cheers, Dave _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

