Hi Uwe, Thanks for your quick response.
Would it be as simple as using input.correctOffset(newOffset) or do I have to create the method in my filter class? If it is the later, could you let me know where I might find a base class example? Kind Regards, Luke -----Original Message----- From: Uwe Schindler [mailto:[email protected]] Sent: 12 September 2012 18:31 To: [email protected] Subject: RE: charFilter 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: [email protected] > -----Original Message----- > From: Osullivan L. [mailto:[email protected]] > Sent: Wednesday, September 12, 2012 7:25 PM > To: [email protected] > 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
