Hi -

I'm currently investigating support for Ferret and content that spans multiple locales. I am particularly interested in using stemming and fuzzy searches (e.g. with slop factor) across multiple locales.

So far I've followed the online docs for implementing a Stemming Analyzer, and it is working for English terms just fine. I've also written a method to import data from the legacy XML files and save as ActiveRecord objects (using AAF). However, I'm not certain the the locale-switching is working properly:

    doc = Document.import_from_xml(filename)
    Ferret::locale = doc.locale_id    # locale_id is "en.UTF-8" or "fr.UTF-8" for example
    doc.save

What's the best way to handle the import of data, where locale is changing from document to document? What other considerations should I keep in mind when using Ferret across multiple locales?

Thanks for any tips!
--chris
_______________________________________________
Ferret-talk mailing list
Ferret-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to