# Problem with acts\_as\_ferret

**URL:** <https://www.ruby-forum.com/t/problem-with-acts-as-ferret/125028>\
**Category:** Rails\
**Created:** [January 4, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/problem-with-acts-as-ferret/125028 "2008-01-04T17:29:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmcolombet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b2d939/32.png) [@bmcolombet](https://www.ruby-forum.com/u/bmcolombet)\
**Post date:** [January 4, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/problem-with-acts-as-ferret/125028/1 "2008-01-04T17:29:12Z")

</div>

Hi all,

I’ve created a ferret analyzer to replace accentuated letters by  
non-accentuated using the MappingFilter Analyzer. This filter works  
well in a little ruby script but in my rails (2.0.2) project, the  
search has a weird behavior. It seems the find\_by\_contents method  
doesn’t use my Analyzer for the search.

So for a record containing the word “élevé”, the search finds the  
record the query “eleve” but not whith the query “élevé”.

Does someone experienced such a problem ?

My Ferret Analyzer: [Parked at Loopia](http://pastie.caboo.se/134937)

My Model Job: [Parked at Loopia](http://pastie.caboo.se/134946)

–  
Benoit
