You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Andreas Kahl <An...@gmx.net> on 2009/11/24 09:46:42 UTC
Normalizing multiple Chars with MappingCharFilter possible?
Hello everyone,
is it possible to normalize Strings like '`e' (2 chars) => 'e' (in contrast to 'é' (1 char) => 'e') with org.apache.lucene.analysis.MappingCharFilter?
I am asking this because I am considering to index some multilingual and multi-alphabetic data with Solr which uses such Strings as a substitution for 'real' Unicode characters.
Thanks for your advice.
Andreas
Re: Normalizing multiple Chars with MappingCharFilter possible?
Posted by Andreas Kahl <An...@gmx.net>.
Am 24.11.09 12:30, schrieb Koji Sekiguchi:
> Andreas Kahl wrote:
>> Hello everyone,
>>
>> is it possible to normalize Strings like '`e' (2 chars) => 'e' (in
>> contrast to 'é' (1 char) => 'e') with
>> org.apache.lucene.analysis.MappingCharFilter?
>>
>> I am asking this because I am considering to index some multilingual
>> and multi-alphabetic data with Solr which uses such Strings as a
>> substitution for 'real' Unicode characters.
>> Thanks for your advice.
>> Andreas
>>
>>
>>
> Yes. It should work.
> MappingCharFilter supports:
>
> * char-to-char
> * string-to-char
> * char-to-string
> * string-to-string
>
> without misalignment of original offsets (i.e. highlighter works
> correctly with MappingCharFilters).
>
> Koji
>
Thanks Koji. That was all I needed to know.
Andreas
Re: Normalizing multiple Chars with MappingCharFilter possible?
Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
Andreas Kahl wrote:
> Hello everyone,
>
> is it possible to normalize Strings like '`e' (2 chars) => 'e' (in contrast to 'é' (1 char) => 'e') with org.apache.lucene.analysis.MappingCharFilter?
>
> I am asking this because I am considering to index some multilingual and multi-alphabetic data with Solr which uses such Strings as a substitution for 'real' Unicode characters.
>
> Thanks for your advice.
>
> Andreas
>
>
>
Yes. It should work.
MappingCharFilter supports:
* char-to-char
* string-to-char
* char-to-string
* string-to-string
without misalignment of original offsets (i.e. highlighter works
correctly with MappingCharFilters).
Koji
--
http://www.rondhuit.com/en/