On Fri, Jan 19, 2007 at 06:12:12PM +0100, John Private wrote:
> Greetings,
> 
> (using acts_as_ferret)
> 
> So I have a book title "Möngrel „Horsemen“" in my index.
> 
> Searching for "Möngrel" retrieves the document.
> 
> But I would like searching for "Mongrel" to also retrieve the document.
> Which it does not currently.
> 
> Anyone have any good solutions to this problem?
> 
> I suppose I could filter the documents and queries first which something
> like:
> 
> 
> (Iconv.new('US-ASCII//TRANSLIT', 'utf-8').iconv "Möngrel
> „Horsemen“").gsub(/[^a-zA-Z0-9/im,"")
> 
> But perhaps there is a better, or built in solution.

I don't think so - a custom Analyzer would be the right place for
this.

Jens

-- 
webit! Gesellschaft für neue Medien mbH          www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer       [EMAIL PROTECTED]
Schnorrstraße 76                         Tel +49 351 46766  0
D-01069 Dresden                          Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to