lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Weiwei Wang <>
Subject Problem in MappingCharFilter and PatternReplaceCharFilter
Date Mon, 14 Dec 2009 05:32:39 GMT
Hi, guys,

1. how to deal with c++c++ or c++abc using MappingCharFilter

i use a NormalizeMap("c++","cplusplus"), the analyzed result will be
cpluspluscplusplus or cplusplusabc wich is not what i want

if i use a NormalizeMap("c++","cplusplus$"), the offset will not be correct.

2. I use PatternReplaceCharFilter to filter season07 or something like this
into season 07, the pattern i use is shown below
    String pattern = "([\\p{Alpha}]+)(\\d+)";
    String replace = "1,{ },2";
 the offset is not correct for Highlighting

Weiwei Wang
Alex Wang
Room 403, Mengmin Wei Building
Computer Science Department
Gulou Campus of Nanjing University
Nanjing, P.R.China, 210093


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message