dougal / acts_as_indexed

Acts As Indexed is a plugin which provides a pain-free way to add fulltext search to your Ruby on Rails app
http://douglasfshearer.com/blog/rails-plugin-acts_as_indexed
MIT License
211 stars 49 forks source link

Searching keyword in czech language #37

Closed sedrickcz closed 11 years ago

sedrickcz commented 11 years ago

Hi, is it possible to use czech language for searching?

If I tried to search some word, it gave me strange results.

Words like "lázně", "duše" or "bíčí" are not found but words like "okvětů", "hodně","křížala" and "očividně" yes

Both contains czech diacritic and some are found and some not.

Where is the problem? Can you help me? Thanks.

dougal commented 11 years ago

Hi Sedrickcz.

Please take a look at the following gist which shows how to handle non-ascii characters with acts_as_indexed.

https://gist.github.com/193903bb4e0d6e5debe1

Thanks.

Douglas F Shearer http://douglasfshearer.com

On Friday, 5 October 2012 at 00:14, sedrickcz wrote:

Hi, is it possible to use czech language for searching?
If I tried to search some word, it gave me strange results. Words like "lázně", "duše" or "bíčí" are not found but words like "okvětů", "hodně","křížala" and "očividně" yes
Both contains czech diacritic and some are found and some note. Where is the problem? Can you help me? Thanks.

— Reply to this email directly or view it on GitHub (https://github.com/dougal/acts_as_indexed/issues/37).

sedrickcz commented 11 years ago

Thanks. It works just fine.