I found the problem and the solution.
The problem was that the text analyzer Doctrine_Search_Analyzer_Standard was
not taking into account utf-8 encoding.
The solution is that there is a class called Doctrine_Search_Analyzer_Utf8.
You can apply this to a model like so:
MyModel:
actAs:
Timestampable: ~
SoftDelete: ~
Searchable:
fields: [name, description]
analyzer: Doctrine_Search_Analyzer_Utf8
Thanks
On Mon, Mar 21, 2011 at 14:18, Alex Pilon <[email protected]> wrote:
> To further this, I traced the search code, and the keywords being entered
> seem to preserve any french characters.
>
> Why is the searchable behavior changing characters at all?
>
>
> On Mon, Mar 21, 2011 at 14:12, Alex Pilon <[email protected]> wrote:
>
>> I tried that, however I noticed that there is more to this problem.
>>
>> When a record gets inserted and the search index is added, words with
>> accents get replaced - not always to the correct letter.
>>
>> For example, qualité is in the search index as "qualita".
>>
>> Is there a best practice or something that I am missing in terms of
>> getting this to work properly?
>>
>>
>> On Mon, Mar 21, 2011 at 13:58, Gabriel Petchesi <[email protected]>wrote:
>>
>>> You should run a transliteration filter upon the query text before
>>> sending the search query to the database.
>>>
>>> gabriel
>>>
>>> --
>>> If you want to report a vulnerability issue on symfony, please send it to
>>> security at symfony-project.com
>>>
>>> You received this message because you are subscribed to the Google
>>> Groups "symfony users" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>>>
>>
>>
>>
>> --
>> Alex Pilon
>> (613) 608-1480
>>
>
>
>
> --
> Alex Pilon
> (613) 608-1480
>
--
Alex Pilon
(613) 608-1480
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en