search for: setup_new_index

Displaying 2 results from an estimated 2 matches for "setup_new_index".

2007 Nov 07
2
Ferret-talk Digest, Vol 25, Issue 2
> From: Jens Kraemer <jk at jkraemer.net> > Subject: Re: [Ferret-talk] Performance before and after optimization > On Sat, Nov 03, 2007 at 08:49:17PM +0800, Alex Neth wrote: > [..] >> 2) Can I keep a second index so that it doesn''t get locked during >> optimization and then switch to the optimized index? Perhaps the >> index >> is not really
2007 Nov 10
1
Ferret-talk Digest, Vol 25, Issue 3
...lain; charset=UTF-8 > > On 11/7/07, Alex Neth <alex at liivid.com> wrote: >> Thanks Jens. Any suggestion on how to get a two index solution >> working with acts_as_ferret? > > I rolled my own with methods in my model class, something like this: > > def self.setup_new_index(location) > config = aaf_configuration[:ferret].dup > config.update(:create => true, :auto_flush => false, > :field_infos => ActsAsFerret::field_infos([self]), > :path => location) > index = Ferret::Index::Index.ne...