Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B7107200BA0 for ; Fri, 14 Oct 2016 17:56:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B5B9A160AD3; Fri, 14 Oct 2016 15:56:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EBB1A160ADD for ; Fri, 14 Oct 2016 17:56:21 +0200 (CEST) Received: (qmail 54001 invoked by uid 500); 14 Oct 2016 15:56:20 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 53577 invoked by uid 99); 14 Oct 2016 15:56:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2016 15:56:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7E3002C4C75 for ; Fri, 14 Oct 2016 15:56:20 +0000 (UTC) Date: Fri, 14 Oct 2016 15:56:20 +0000 (UTC) From: "Adrien Grand (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-6914) DecimalDigitFilter skips characters in some cases (supplemental?) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 14 Oct 2016 15:56:22 -0000 [ https://issues.apache.org/jira/browse/LUCENE-6914?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D155= 75706#comment-15575706 ]=20 Adrien Grand commented on LUCENE-6914: -------------------------------------- [~hossman] Let's commit this patch? > DecimalDigitFilter skips characters in some cases (supplemental?) > ----------------------------------------------------------------- > > Key: LUCENE-6914 > URL: https://issues.apache.org/jira/browse/LUCENE-6914 > Project: Lucene - Core > Issue Type: Bug > Affects Versions: 5.4 > Reporter: Hoss Man > Attachments: LUCENE-6914.patch, LUCENE-6914.patch, LUCENE-6914.pa= tch > > > Found this while writing up the solr ref guide for DecimalDigitFilter.=20 > With input like "=F0=9D=9F=99=F0=9D=9F=A1=F0=9D=9F=A0=F0=9D=9F=9C" ("Doub= le Struck" 1984) the filter produces "1=F0=9D=9F=A18=F0=9D=9F=9C" (1, doubl= e struck 9, 8, double struck 4) add some non-decimal characters in between= the digits (ie: "=F0=9D=9F=99x=F0=9D=9F=A1x=F0=9D=9F=A0x=F0=9D=9F=9C") and= you get the expected output ("1x9x8x4"). This doesn't affect all decimal = characters though, as evident by the existing test cases. > Perhaps this is an off by one bug in the "if the original was supplementa= ry, shrink the string" code path? -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org