Return-Path: X-Original-To: apmail-lucene-general-archive@www.apache.org Delivered-To: apmail-lucene-general-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1673EDC3C for ; Wed, 12 Sep 2012 17:30:54 +0000 (UTC) Received: (qmail 5438 invoked by uid 500); 12 Sep 2012 17:30:53 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 5397 invoked by uid 500); 12 Sep 2012 17:30:53 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 5387 invoked by uid 99); 12 Sep 2012 17:30:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2012 17:30:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of uwe@thetaphi.de designates 188.138.97.18 as permitted sender) Received: from [188.138.97.18] (HELO mail.sd-datasolutions.de) (188.138.97.18) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2012 17:30:46 +0000 Received: from VEGA (port-92-196-126-162.dynamic.qsc.de [92.196.126.162]) by mail.sd-datasolutions.de (Postfix) with ESMTPSA id 2043014AA06D for ; Wed, 12 Sep 2012 17:30:25 +0000 (UTC) From: "Uwe Schindler" To: References: <6E89A9721EFF6A4C804DFE6E3083F64632D5B2B2@ISS-MBX3.tawe.swan.ac.uk> In-Reply-To: <6E89A9721EFF6A4C804DFE6E3083F64632D5B2B2@ISS-MBX3.tawe.swan.ac.uk> Subject: RE: charFilter Date: Wed, 12 Sep 2012 19:30:56 +0200 Message-ID: <009501cd910c$5e12d520$1a387f60$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJJTc3M3JyqpX9ZO1Ekoz+rqgAghpaPfP3w Content-Language: de 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 >=20 > Hi Folks, >=20 > 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. >=20 > I am modifying the input with the following: >=20 > public myCharFilter (ChearStream input) { super(input); >=20 > ... >=20 > CharStream result =3D CharReader.get(new StringReader(modified)); = this.input =3D > result >=20 > } >=20 > Is there any way of modifying the input offset to that it doesn't = throw the error? >=20 > Thanks, >=20 > Luke