Ferret for professionals

Hello,

I’m trying to setup ferret search engine(what i did successfully for
searching english phrases, words)

But i doesn’t work for UTF-8 symbols!!!

I tried to find the solution for this problem:

  1. i add to enviroment.rb followinf lines:
    ENV[‘LANG’] = ‘de_DE.UTF-8@euro’
    ENV[‘LC_TIME’] = ‘C’
    require ‘acts_as_ferret’
  2. next i using scaffold added few posts(my model, that i index this
    way:
    acts_as_ferret :fields => [ :name, :post ]

English phrases searching well, but for german it get empty result
array.

I don’t know what to do, so I asked to professional, who do this!!

Thanks for your replies!

Igor K. wrote:

I’m trying to setup ferret search engine(what i did successfully for
searching english phrases, words)

But i doesn’t work for UTF-8 symbols!!!

I tried to find the solution for this problem:

  1. i add to enviroment.rb followinf lines:
    ENV[‘LANG’] = ‘de_DE.UTF-8@euro’
    ENV[‘LC_TIME’] = ‘C’
    require ‘acts_as_ferret’
  2. next i using scaffold added few posts(my model, that i index this
    way:
    acts_as_ferret :fields => [ :name, :post ]

English phrases searching well, but for german it get empty result
array.

Try mapping special characters to their base characters. See
Should "a" match "ä" in ferret? - Ferret - Ruby-Forum for a recent discussion on the
Ferret mailing list about this.


Roderick van Domburg
http://www.nedforce.com