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: u...@thetaphi.de > -----Original Message----- > From: Osullivan L. [mailto:l.osulli...@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