lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: charFilter
Date Wed, 12 Sep 2012 17:30:56 GMT
You have to implement the correctOffset method to take care of deleted or added chars.

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Osullivan L. [mailto:L.Osullivan@swansea.ac.uk]
> Sent: Wednesday, September 12, 2012 7:25 PM
> To: general@lucene.apache.org
> Subject: charFilter
> 
> Hi Folks,
> 
> I have created a custom charFilter for use in Solr which does everything I need
> it to with one exception - it kills Solr when highlighting is used.
> 
> I am modifying the input with the following:
> 
> public myCharFilter (ChearStream input) { super(input);
> 
> ...
> 
> CharStream result = CharReader.get(new StringReader(modified)); this.input =
> result
> 
> }
> 
> Is there any way of modifying the input offset to that it doesn't throw the error?
> 
> Thanks,
> 
> Luke


Mime
View raw message