Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 937FFDD7B for ; Sun, 4 Nov 2012 01:22:57 +0000 (UTC) Received: (qmail 14804 invoked by uid 500); 4 Nov 2012 01:22:55 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 14759 invoked by uid 500); 4 Nov 2012 01:22:55 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 14748 invoked by uid 99); 4 Nov 2012 01:22:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Nov 2012 01:22:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.212.48] (HELO mail-vb0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Nov 2012 01:22:47 +0000 Received: by mail-vb0-f48.google.com with SMTP id e21so5803515vbm.35 for ; Sat, 03 Nov 2012 18:22:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=h6P6FocfznftowtiEIyBwEzdpedXYW860sUBVM8Eww0=; b=W8HXCTqeGkI0RHF96ExL/t0dYF0nbOk3jmLE6lz05Y4jK/IlM71EsOGEw7cD3DmRbS LLKC7spAlC7Kboyp0L0U6et0s8HmSf1avNTnfLxjEAvCKB3UypN5Oul4tw23YjE1hnOZ nxmTsdJUPKygGwnvPEE/h6ZwEFbDOjGAwMNTp476ncRbDdlwcczTaBy4DusODNdeLSQY FVIjUIjoJHDj1F6j6xUnI0FMXyto0133H/B33MYzJVHq4byy6Z8s1lzK/SO4KmrCmXTz vfut28okO35LPemjG61ET9PvIsBvvNrBr40XGbaz1yclxHZz/c86+11SITABWEA9t3pB g//g== MIME-Version: 1.0 Received: by 10.220.208.141 with SMTP id gc13mr5761580vcb.55.1351992146220; Sat, 03 Nov 2012 18:22:26 -0700 (PDT) Received: by 10.58.228.194 with HTTP; Sat, 3 Nov 2012 18:22:26 -0700 (PDT) X-Originating-IP: [66.75.78.42] Received: by 10.58.228.194 with HTTP; Sat, 3 Nov 2012 18:22:26 -0700 (PDT) In-Reply-To: References: <5095AA41.9020202@getrailo.org> <5095AD0A.3020305@getrailo.org> <5095B7A4.5080603@getrailo.org> Date: Sat, 3 Nov 2012 18:22:26 -0700 Message-ID: Subject: Re: using CharFilter to inject a space From: Igal Sapir To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=bcaec517a6749d56bc04cda13304 X-Gm-Message-State: ALoCoQkk+ix9lSSGSHJqwyjdHcB3x8AteDA9E4GRFaG2eiP6eeU0dLi+X0CzHhXcKWYvvhA3ovIm X-Virus-Checked: Checked by ClamAV on apache.org --bcaec517a6749d56bc04cda13304 Content-Type: text/plain; charset=ISO-8859-1 You're right. I'm not sure what I was thinking. Thanks for all your help, Igal On Nov 3, 2012 5:44 PM, "Robert Muir" wrote: > On Sat, Nov 3, 2012 at 8:32 PM, Igal @ getRailo.org > wrote: > > hi Robert, > > > > thank you for your replies. > > > > I couldn't find much documentation/examples of this, but this is what I > came > > up with (below). is that the way I'm supposed to use the > MappingCharFilter? > > > > You don't need to extend anything. > You also don't want to create a normalizecharmap for each reader > (thats way too heavy) > > Just build the NormalizeCharMap once, and pass it to > MappingCharFilter's Constructor. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --bcaec517a6749d56bc04cda13304--