From durante.dev at mac.com Wed May 6 13:14:25 2009 From: durante.dev at mac.com (Dur Dev) Date: Wed, 6 May 2009 19:14:25 +0200 Subject: [Ferret-talk] Removing a Record From an Index Message-ID: <58c60eb6eae95f9b06dcb546e5d1041e@ruby-forum.com> How do you remove a record from an index? When a record enters a state of "inactive", we want to remove the record from the index. I have tried calling self.ferret_destroy but this destroys the entire index on the Mongrel on which self.ferret_destroy is called (this Mongrel returns 0 records while the other 3 Mongrels continue to return records). Is there another method I should be calling? I am using AAF 0.4.3, the plugin, which includes the acts_as_ferret :if => Proc.new { .... } option. -- Posted via http://www.ruby-forum.com/. From towb at gmx.net Sat May 16 18:59:38 2009 From: towb at gmx.net (Tobias Weber) Date: Sun, 17 May 2009 00:59:38 +0200 Subject: [Ferret-talk] How does it score? Message-ID: <7F46F3C8-3F13-4E23-9F65-C621C69AA3ED@gmx.net> Hi, how do I find out what ferret actually does? My program works fine: qp = QueryParser.new(:default_field => :title) index.search_each(qp.parse("Some words")) Now it seems that this way not all terms are required, but how does that affect the score? I didn't find the algorithm in the documentation, and I'm no good at reading large C projects. From deb at urbanwide.com Tue May 19 18:28:57 2009 From: deb at urbanwide.com (Deb Bassett) Date: Wed, 20 May 2009 00:28:57 +0200 Subject: [Ferret-talk] Ferret falling through the Monit cracks In-Reply-To: <815e40e21ad9352ae0d790085e5481da@ruby-forum.com> References: <815e40e21ad9352ae0d790085e5481da@ruby-forum.com> Message-ID: > So at this stage ferret should be up and fine but... > Now any attempt to use ferret gets the error (Entry is the model) > > A ActsAsFerret::IndexNotDefined occurred in search#index: > entry > (druby:/localhost:9010) > /var/www/releases/20080922044701/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:264:in > `get_index' > > > I've tried to simulate this in the staging environment with an > artificially low memory limit but everything seems to reset fine. > > Anyone see anything similar themselves, do anything different or have > any suggestions? Hey, I'm also getting the same error from my app almost every time the DRB has been restarted by monit (either due to the DRB exceeding the memory limits configured in monit, or after the DRB has segfaulted). I can reproduce this error by: * running my app & DRB in production mode * stopping the DRB * doing something with the app that updates / searches the ferret index * starting the DRB * running a search / or updating the index will yield this error now... Restarting mongrel when this error occurs fixes the issue, but it's not an ideal solution... I'm using the latest aaf from github and ferret gem version 0.11.6. Wondering if anyone else is getting the same IndexNotDefined exception? Cheers, Deb -- Posted via http://www.ruby-forum.com/.