Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C34D49C20 for ; Sun, 23 Oct 2011 11:22:54 +0000 (UTC) Received: (qmail 22322 invoked by uid 500); 23 Oct 2011 11:22:53 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 22269 invoked by uid 500); 23 Oct 2011 11:22:52 -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 22262 invoked by uid 99); 23 Oct 2011 11:22:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2011 11:22:52 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2011 11:22:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 11B26317680 for ; Sun, 23 Oct 2011 11:20:32 +0000 (UTC) Date: Sun, 23 Oct 2011 11:20:32 +0000 (UTC) From: "Uwe Schindler (Assigned) (JIRA)" To: dev@lucene.apache.org Message-ID: <1994546522.6485.1319368832073.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1195722538.1273.1318348992284.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (LUCENE-3508) Decompounders based on CompoundWordTokenFilterBase cannot be used with custom attributes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-3508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Uwe Schindler reassigned LUCENE-3508: ------------------------------------- Assignee: Uwe Schindler Hi Spyros, thanks for taking care. The patch looks correct, I have some minor recommendations (I will post them later). I will report back soon. > Decompounders based on CompoundWordTokenFilterBase cannot be used with custom attributes > ---------------------------------------------------------------------------------------- > > Key: LUCENE-3508 > URL: https://issues.apache.org/jira/browse/LUCENE-3508 > Project: Lucene - Java > Issue Type: Bug > Components: modules/analysis > Affects Versions: 3.4, 4.0 > Reporter: Spyros Kapnissis > Assignee: Uwe Schindler > Attachments: LUCENE-3508.patch > > > The CompoundWordTokenFilterBase.setToken method will call clearAttributes() and then will reset only the default Token attributes (term, position, flags, etc) resulting in any custom attributes losing their value. Commenting out clearAttributes() seems to do the trick, but will fail the TestCompoundWordTokenFilter tests.. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org