Hi!

On Thu, Jan 10, 2008 at 04:19:02PM +0100, jeroen janssen wrote:
> I'm having some problems with getting the drb server to work correctly  
> on my production server. As a workaround I tried disabling automatic  
> indexing and have a cron job manually update the index every hour or so.
> 
> I disabled the automatic indexing with:
> 
> def ferret_enabled?
>    false
> end
> 
> But whenever I try Page.rebuild_index
> 
> I get a 'wrong number of arguments' error. I seem to remember that  
> this used to work, am I doing something wrong or has something changed?

ferret_enabled? takes a boolean argument telling it if there's a bulk
indexing going on, or if it's a normal update of a single record. So 
in your case, overriding it like that:

def ferret_enabled?(is_bulk_index)
  is_bulk_index
end

should do what you want - disable normal index updates, but allow them
during rebuild and bulk_index calls..

Cheers,
Jens
  

-- 
Jens Krämer
http://www.jkraemer.net/ - Blog
http://www.omdb.org/     - The new free film database
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to