Ferret FileNotFound error after adding counter_cache to mode

I have a model that I’ve been indexing and searching with ferret with no
problems.

I just added a counter_cache for some voting functionality to the same
model and now when I perform the voting fxn on an object from that
model, I get the FileNotFound error as it looks for a file named
“_1c_1.del” …which breaks my voting function.

I tried killing the server and my index directory as suggested for FnF
errs elsewhere, but, now, after restarting the server and performing a
search (to trigger rebuilding the index), I still have the same prob
when voting.

Any thoughts? (hopefully I won’t have to rewind the counter_cache
change)

TIA

Luna Claire wrote:

I have a model that I’ve been indexing and searching with ferret with no
problems.

I just added a counter_cache for some voting functionality to the same
model and now when I perform the voting fxn on an object from that
model, I get the FileNotFound error as it looks for a file named
“_1c_1.del” …which breaks my voting function.

I tried killing the server and my index directory as suggested for FnF
errs elsewhere, but, now, after restarting the server and performing a
search (to trigger rebuilding the index), I still have the same prob
when voting.

Any thoughts? (hopefully I won’t have to rewind the counter_cache
change)

TIA

Haven’t gotten a response to the above, but I’m still hoping to…

I removed the counter_cache on the non-indexed field that was causing
the FnF error and thngs are back to working well, but I’ll still need
that at some pt.

Has anyone else experienced ferret not finding files like this after
changing a model that was working fine before?

Is there something about that specific file named “_1c_1.del” perhaps?

Thanks for any help.

On Fri, Jun 08, 2007 at 08:00:49PM +0200, Luna Claire wrote:

errs elsewhere, but, now, after restarting the server and performing a
search (to trigger rebuilding the index), I still have the same prob
when voting.

Any thoughts? (hopefully I won’t have to rewind the counter_cache
change)

that is really interesting, could you provide me with your corresponding
code (model declaration and your voting function) so I can try to
reproduce this?

Does this happen in development or in only in production environment?

Is there something about that specific file named “_1c_1.del” perhaps?

Afaik it’s a file where Ferret remembers the ids of deleted documents
(they will ‘really’ get removed from the index only when optimizing it).

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