[Zope] Zope 2.3.2 version

sean.upton@uniontrib.com sean.upton@uniontrib.com
Thu, 17 May 2001 08:58:31 -0700


Solution is (and it's a hack); create an alternate index method within
whatever it is that you are indexing that outputs the text, and for every
word with an accent, strip out the accent (perhaps use a python dictionar=
y
of character mappings).  Index that method (or methods).

You are then indexing un-accented text.

Then, write a method that translates accents out of the search text by
rewriting the field in the REQUEST object for each text box where people
enter text (using the same code as above).

Not a graceful solution, but would be transparent to the user - though th=
is
might get a bit tedious if you have lots of fields/methods/properties wit=
h
full-text indexes...

Sean

-----Original Message-----
From: Chris McDonough [mailto:chrism@digicool.com]
Sent: Thursday, May 17, 2001 8:45 AM
To: After Dark; Phil Harris; Chris Withers
Cc: Casey Duncan; zope@zope.org
Subject: Re: [Zope] Zope 2.3.2 version


Well, the Catalog doesn't do that.  Sorry!

- C

----- Original Message -----
From: "After Dark" <afterz@zipmail.com>
To: "Phil Harris" <phil.harris@zope.co.uk>; "Chris Withers"
<chrisw@nipltd.com>; "Chris McDonough" <chrism@digicool.com>
Cc: "Casey Duncan" <cduncan@kaivo.com>; <zope@zope.org>
Sent: Thursday, May 17, 2001 11:30 AM
Subject: Re: [Zope] Zope 2.3.2 version


When you make a search in a site, for example AltaVista, how
does it work??
The site ignores accentuation.

I realy need to do that. The search has to bring related
results to the keyword, not only results that has it. A
basic feature to do that is to ignore accentuation.

Maybe in english that doesn`t make much diference, but in
many other languages, like in portuguese that has almost the
half of the words with accents, it is impossible to have a
search without it.

So, someone see any solution?

Thanks.


"Phil Harris" <phil.harris@zope.co.uk> wrote:
>Why should it bring back both?
>
>Surely they are different words?
>
>----- Original Message -----
>From: "After Dark" <afterz@zipmail.com>
>To: "Chris Withers" <chrisw@nipltd.com>; "Chris McDonough"
><chrism@digicool.com>
>Cc: "Casey Duncan" <cduncan@kaivo.com>; <zope@zope.org>
>Sent: Thursday, May 17, 2001 1:44 PM
>Subject: Re: [Zope] Zope 2.3.2 version
>
>
>> ZCatalog indexes words with accentuation, when made a
>search
>> without the accent it doesn't bring the accentuated
>word.
>>
>> Example:
>>          search: top --> three results.
>>          search: t=F3p --> ten results.
>>
>> Solutions???
>>
>> Chris Withers <chrisw@nipltd.com> wrote:
>> >Chris McDonough wrote:
>> >>
>> >> > And any changes in ZCatalog that solve tha
>> >accentuation
>> >> > problem???
>> >>
>> >> What's the "accentuation problem"?
>> >
>> >He probably means the splitter doing stupid things with
>> >accentuated
>> >characters...
>> >
>> >cheers,
>> >
>> >Chris
>>
>> --
>> --Ricardo Kohler
>>           Costa
>> ________________________________________________
>> Don't E-Mail, ZipMail! http://www.zipmail.com/
>>
>>
>> _______________________________________________
>> 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 )
>

--
--Ricardo Kohler
          Costa
________________________________________________
Don't E-Mail, ZipMail! http://www.zipmail.com/


_______________________________________________
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 )



_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -=20
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )