Hello zope community Here is the problem, maybe you had it before if you're french, german, spanish.... I have a collection of objects supervised with a Catalog. Say I have an object containing the string 'ingénieur' If I search for 'ingenieur' it doesn't work.... How can I tell the Catalog to ignore the difference between 'é', 'è', 'e', 'ê' Same for 'a', 'à', 'â' .... ???? Any clue is welcome, since many of our seaches in the Catalog return nothing because of this NIL
Use TextIndexNG instead of TextIndex and enable the normalization support (you need to provide a translation table on your own). ZCatalog/TextIndex are by default not able to handle your requirements. -aj --On Freitag, 25. Oktober 2002 17:15 +0200 Nicolas LAURANCE <nicolas.laurance@expert-rh.com> wrote:
Hello zope community
Here is the problem, maybe you had it before if you're french, german, spanish....
I have a collection of objects supervised with a Catalog.
Say I have an object containing the string 'ingénieur'
If I search for 'ingenieur' it doesn't work....
How can I tell the Catalog to ignore the difference between 'é', 'è', 'e', 'ê' Same for 'a', 'à', 'â'
....
???? Any clue is welcome, since many of our seaches in the Catalog return nothing because of this
NIL
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
Nicolas LAURANCE writes:
Here is the problem, maybe you had it before if you're french, german, spanish....
I have a collection of objects supervised with a Catalog.
Say I have an object containing the string 'ingénieur'
If I search for 'ingenieur' it doesn't work....
How can I tell the Catalog to ignore the difference between 'é', 'è', 'e', 'ê' Same for 'a', 'à', 'â' When you do not want the partly [L]GPL TextIndexNG (as Andreas suggested), then you can adapt the "splitter" (C-source, part of the Zope sources) module.
Dieter
participants (3)
-
Andreas Jung -
Dieter Maurer -
Nicolas LAURANCE