Should "a" match "ä" in ferret?

Hi all,

I have indexed a huge amount of data with text from several european
languages. In the index are values like Georg Friedrich Händel.

I would like a search phrase like “Georg Friedrich Handel” to find
records with the real spelling of Händel but it doesn’t seem to work.

Can anyone give me an idea of what I need to do to make this happen. A
bit lost here and can’t seem to find anything on google to help out. I
have an idea that it might be a locale issue but not sure.

Thanks,

Chad.

I’m a 100% sure this has been asked before in this list. But I know
it’s not exactly trivial to search for it.

I’d say, give it a try on the archives.

http://rubyforge.org/pipermail/ferret-talk/

Chad,

you should use a mapping filter to transform special characters like
german umlauts into its ascii counterpiece.

take a look out this analyzer, maybe it helps …

http://bugs.omdb.org/browser/branches/2007.1/lib/omdb/ferret/analysis.rb

Ben

On Tue, Aug 14, 2007 at 02:24:54AM +0200, Chad T. wrote:

have an idea that it might be a locale issue but not sure.
To achieve this, simply replace all occurences of ‘ä’ by ‘a’ in both
indexed content and queries.
MappingFilter [1] is your friend :slight_smile:

Cheers,
Jens

[1]
http://ferret.davebalmain.com/api/classes/Ferret/Analysis/MappingFilter.html


Jens Krämer
http://www.jkraemer.net/ - Blog
http://www.omdb.org/ - The new free film database