Luna Claire
2007-Jun-01 21:55 UTC
[Ferret-talk] 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 -- Posted via http://www.ruby-forum.com/.
Luna Claire
2007-Jun-08 18:00 UTC
[Ferret-talk] Ferret FileNotFound error after adding counter_cache to
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) > > TIAHaven''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. -- Posted via http://www.ruby-forum.com/.
Jens Kraemer
2007-Jun-11 07:02 UTC
[Ferret-talk] Ferret FileNotFound error after adding counter_cache to
On Fri, Jun 08, 2007 at 08:00:49PM +0200, Luna Claire wrote:> 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)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 kraemer at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa