Lowercase

Hi,

Im useing acts_as_ferret and have a code like this:

class News < ActiveRecord::Base
acts_as_ferret({:fields => { :normalized_text => {:store => :yes }}})
end

This should use the default analyzer with lowercase=true

If I do something like
News.find_by_contents(‘Problem’)

it doesn’t find anything (though ‘Problem’ is in the text). I know the
query should lowercase this but it seems it doesn’t. This seems to be a
aaf problem, right? Or am I completely wrong?

BTW: has anyone encountered errors with ferret/aaf.highlight? It seems
it just chops the text of after x bytes but this looks ugly in unicode
if it splits a character.

Regards

Peter

On 4/4/07, P. Schrammel [email protected] wrote:

BTW: has anyone encountered errors with ferret/aaf.highlight? It seems
it just chops the text of after x bytes but this looks ugly in unicode
if it splits a character.

This problem can occur if you don’t have the correct locale installed.
For example, if you are indexing UTF-8 data and your locale is set to
ISO-8859-1. Hope that helps.