lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Osullivan L. <L.Osulli...@swansea.ac.uk>
Subject RE: charFilter
Date Wed, 12 Sep 2012 17:36:08 GMT
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:uwe@thetaphi.de] 
Sent: 12 September 2012 18:31
To: general@lucene.apache.org
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: 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