[Zope-CMF] Searching multilingual CMF sites

Greg Ward gward@python.net
Fri, 7 Mar 2003 14:42:10 -0500


[sorry for posting to two lists, but I'm really not sure if the
Localizer community or the CMF community is the right place to ask!]

What's the best way to implement searching on a multilingual site?  I've
got a CMF site with bilingual content up-and-running thanks to
Localizer, and managed to cobble together a fairly functional "search"
box by stealing some scripts from Plone.  But it gets weird when you
cross language boundaries.

Eg. if I'm browsing the site in English and search for a French word,
then I'll get the document whose French version contains that word.
(Err, I should mention at this point that I implemented some custom
content types, so all translations for a document are stored in a single
object.)  But of course I never see the word that I searched for.  This
is particularly troublesome because there are plenty of words that are
spelled the same in English and French -- if I were dealing with a
Swahili/Inuktitut web site, I might not be so concerned.  ;-)

The "obvious" solution to me is to have two Catalog objects, one for
English content and one for French.  It's not at all clear how to make
that work with CMF, though.  Recommendations, anyone?

Thanks --

        Greg
-- 
Greg Ward <gward@python.net>                         http://www.gerg.ca/
Never underestimate the power of human stupidity.