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 0A08F139E for ; Wed, 20 Apr 2011 19:42:25 +0000 (UTC) Received: (qmail 58975 invoked by uid 500); 20 Apr 2011 19:15:44 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 58929 invoked by uid 500); 20 Apr 2011 19:15:43 -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 58909 invoked by uid 99); 20 Apr 2011 19:15:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 19:15:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Wed, 20 Apr 2011 19:15:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id ADBBAAB776 for ; Wed, 20 Apr 2011 19:15:05 +0000 (UTC) Date: Wed, 20 Apr 2011 19:15:05 +0000 (UTC) From: "Uwe Schindler (JIRA)" To: dev@lucene.apache.org Message-ID: <1668561616.70780.1303326905708.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1194638679.70659.1303324745760.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-2474) Analysis.jsp and AnalaysisRequestHandlerBase do not correctly clear attributes on caching tokens 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/SOLR-2474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Uwe Schindler updated SOLR-2474: -------------------------------- Description: When caching tokens, the helper TokenStreams in analysis.jsp and AnalysisRequestHandlerBase do not clear all attributes. The issue is tricky. The cached tokens do not contain all attributes in early stages, so copyTo() does not necessarily overwrite all attributes in "this". Calling clearAttributes ensures this. bq. Was: LUCENE-2901 broke protected words by only setting and never clearing (that change should have been accompanied by offsetting code to clear the attribute somewhere). The problem here was, that this attribute was added later in anaylsis chain, so cached tokens don't include this. Sorry, that was my fault when rewriting analysis.jsp together with Robert :( was:LUCENE-2901 broke protected words by only setting and never clearing (that change should have been accompanied by offsetting code to clear the attribute somewhere). Summary: Analysis.jsp and AnalaysisRequestHandlerBase do not correctly clear attributes on caching tokens (was: Aanalysis.jsp and AnalaysisRequestHandlerBase does not correctly clear attributes on caching tokens) > Analysis.jsp and AnalaysisRequestHandlerBase do not correctly clear attributes on caching tokens > ------------------------------------------------------------------------------------------------ > > Key: SOLR-2474 > URL: https://issues.apache.org/jira/browse/SOLR-2474 > Project: Solr > Issue Type: Bug > Affects Versions: 3.1 > Reporter: Yonik Seeley > Assignee: Uwe Schindler > Attachments: SOLR-2474.patch > > > When caching tokens, the helper TokenStreams in analysis.jsp and AnalysisRequestHandlerBase do not clear all attributes. > The issue is tricky. The cached tokens do not contain all attributes in early stages, so copyTo() does not necessarily overwrite all attributes in "this". Calling clearAttributes ensures this. > bq. Was: LUCENE-2901 broke protected words by only setting and never clearing (that change should have been accompanied by offsetting code to clear the attribute somewhere). > The problem here was, that this attribute was added later in anaylsis chain, so cached tokens don't include this. Sorry, that was my fault when rewriting analysis.jsp together with Robert :( -- This message is automatically generated by JIRA. 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