Christian Reis wrote:
> Public bug report changed:
> https://launchpad.net/malone/bugs/5417
>
> Comment:
> I think we might have an easier way out just smashing the fti indexes to
> contain only non-accented versions of the characters, and then
> converting the query strings provided to the fti helper. I'm guessing,
> though, and Stuart as usually will have a better idea.
I think we would need to smash the values going into the indexes - tsearch2
is designed to only work in a single locale and encoding so it isn't going
to be any help to us here.
We already have code to do the deaccentification -
canonical.encoding.ascii_smash() handles the European latin based character
sets. Your still stuffed with character sets that don't have an ASCII
equivalent, such as Coptic, Greek or most of the Asian languages.
If we want to proceed, canonical.encoding.ascii_smash() needs to be brought
into the database environment by embedding the logic into the ftq() method.
Christian Reis wrote: /launchpad. net/malone/ bugs/5417
> Public bug report changed:
> https:/
>
> Comment:
> I think we might have an easier way out just smashing the fti indexes to
> contain only non-accented versions of the characters, and then
> converting the query strings provided to the fti helper. I'm guessing,
> though, and Stuart as usually will have a better idea.
I think we would need to smash the values going into the indexes - tsearch2
is designed to only work in a single locale and encoding so it isn't going
to be any help to us here.
We already have code to do the deaccentification - encoding. ascii_smash( ) handles the European latin based character
canonical.
sets. Your still stuffed with character sets that don't have an ASCII
equivalent, such as Coptic, Greek or most of the Asian languages.
If we want to proceed, canonical. encoding. ascii_smash( ) needs to be brought
into the database environment by embedding the logic into the ftq() method.
-- www.canonical. com/ www.ubuntu. com/
Stuart Bishop <email address hidden> http://
Canonical Ltd. http://