Did you consider using a single index, but add a locale field to
every record to allow easy filtering by selected locale? If so, what
are the advantages to separate indexes?
Erik
On Jan 16, 2007, at 7:03 PM, Saimon Moore wrote:
> Hi,
>
> I've modified the latest acts_as_ferret code (version 0.3.0) to
> integrate with the Globalize (http://www.globalize-rails.org/
> globalize/)
> plugin.
>
> Essentially, I've added the ability to use a separate index per locale
> (It basically adds the language code as a suffix to the index and
> switches between indexes when the active locale changes).
>
> Since this introduces an optional external dependency and as I've
> had to
> touch the code up in a few files, I'm still trying to think of the
> best
> way to make this available to others.
>
> If others think this is worthwile, I'd be interested in adding this as
> something optional to acts_as_ferret.
>
> P.S. Currently, I've added the option like so:
>
> class Foo
> acts_as_ferret :single_index => true,
> :store_class_name => true,
> :localized => true, #=> this activates the
> option.
> :fields => {...}
> end
>
> Regards,
>
> Saimon
>
> (http://saimonmoore.net)
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ferret-talk mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ferret-talk
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk