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’] = ‘[email protected]
    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’] = ‘[email protected]
    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
http://www.ruby-forum.com/topic/121438 for a recent discussion on the
Ferret mailing list about this.


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs