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!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
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 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---