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 07F10DC4E for ; Sun, 4 Nov 2012 00:14:35 +0000 (UTC) Received: (qmail 70987 invoked by uid 500); 4 Nov 2012 00:14:32 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 70945 invoked by uid 500); 4 Nov 2012 00:14:32 -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 70937 invoked by uid 99); 4 Nov 2012 00:14:32 -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 00:14:32 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rcmuir@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qc0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Nov 2012 00:14:26 +0000 Received: by mail-qc0-f176.google.com with SMTP id n41so935927qco.35 for ; Sat, 03 Nov 2012 17:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=8wfRYEPmlF275rlQ+NKC5+wy0+rCaRbPadEHj2Gy/SM=; b=sGqabITRxqRW2lWim3DHRyOFUu0KM6O3sJ2ydBzj4dFVo28g7fx1lDdRN7/Boxhx8h jFiWKC/99V5TszkteKlxH8v5TjZOEErAqqnKxG7NvY51EIyAq/mKzdQdxiYEwTzcTRpb M7hTqvzLgH/gmtgk9KXiv59ZxM9qjoGG2Jci5Eh7PXd0+b7p0q2D/P6njQm52wO99aPu hSrQLkZJqdRYCzpwmsNkzxjzcB/sNRie/MKn7d4jHM7Y2pmVGQLFy6q+s8dnBaxnSAxv 3yXR5jiChhSU+iC9ZnMkR8Rrx3AiYjeNe52gqzN2pt6roBbM7mckmOOtC7NRM33ZVOIj aPpg== Received: by 10.49.2.200 with SMTP id 8mr10132722qew.20.1351988045220; Sat, 03 Nov 2012 17:14:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.105.168 with HTTP; Sat, 3 Nov 2012 17:13:45 -0700 (PDT) In-Reply-To: <5095AD0A.3020305@getrailo.org> References: <5095AA41.9020202@getrailo.org> <5095AD0A.3020305@getrailo.org> From: Robert Muir Date: Sat, 3 Nov 2012 20:13:45 -0400 Message-ID: Subject: Re: using CharFilter to inject a space To: java-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Nov 3, 2012 at 7:47 PM, Igal @ getRailo.org wrote: > I considered it, and it's definitely an option. > > but I read in the book "Lucene In Action" that MappingCharFilter is > inefficient and I'm not sure that I need that. if implementing my own > involves a lot of coding then I might resort to it as I don't have large > data sets to index at this time. Also I think (dont remember off the top of my head) that this note in Lucene in Action refers to the fact that its base class (BaseCharFilter) corrected offsets in O(n) at the time. We fixed this to be O(log(N)) here as of 3.1: https://issues.apache.org/jira/browse/LUCENE-2098 So I think its worth giving it a try before trying to code something yourself! --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org