ZCTextindex to search and catalog accented words as non accented.
- Step 1
Add to Lexicon.py (around line 190) this code, which filters the things
in the pipeline:
---
class RemoveAccented:
def filter_word(self, w):
""" filter the non ascii letters to ascii"""
# trasformo la
Please stay on the list -- readded...
Yuri wrote at 2005-6-9 13:18 +0200:
>>Please read carefully the ZCatalog chapter of the Zope Book,
>>when you do not understand why using a new name can help you
>>with this...
>>
>>
>http://www.plope.com/Books/2_7Edition/SearchingZCatalog.stx
>
> there's no
Yuri wrote at 2005-6-8 10:11 +0200:
> ...
>>When you rebuild it, you can also give it a different name.
>>
>>
>
> Why? I usually gave it the name of the form input I want to index...
Because you want to include a processing step.
Please read carefully the ZCatalog chapter of the Zope Book,
when
Dieter Maurer ha scritto:
Yuri wrote at 2005-6-7 10:37 +0200:
...
Implement a PythonScript that performs the normalization of
"context.SearchableText()", say "NormalizedSearchableText".
Ensure, it is acquirable by your indexed objects.
Index "NormalizedSearchableText" rather than "Se
Yuri wrote at 2005-6-7 10:37 +0200:
> ...
>>Implement a PythonScript that performs the normalization of
>>"context.SearchableText()", say "NormalizedSearchableText".
>>
>>Ensure, it is acquirable by your indexed objects.
>>
>>Index "NormalizedSearchableText" rather than "SearchableText"
>>and use t
Dieter Maurer ha scritto:
Yuri wrote at 2005-6-6 11:56 +0200:
I would like to index a text property of an object in the ZCatalog. The
text is in French language, but I have a problem: I have to find results
for the related non accented letters!
I mean, If I do a search for "actualite", t
Yuri wrote at 2005-6-6 11:56 +0200:
>I would like to index a text property of an object in the ZCatalog. The
>text is in French language, but I have a problem: I have to find results
>for the related non accented letters!
>
> I mean, If I do a search for "actualite", the index should return also