Return-Path: Delivered-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Received: (qmail 67246 invoked from network); 17 Dec 2009 09:19:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Dec 2009 09:19:30 -0000 Received: (qmail 34375 invoked by uid 500); 17 Dec 2009 09:19:30 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 34255 invoked by uid 500); 17 Dec 2009 09:19:29 -0000 Mailing-List: contact solr-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-commits@lucene.apache.org Received: (qmail 34238 invoked by uid 99); 17 Dec 2009 09:19:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 09:19:29 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 09:19:27 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 33A622388978; Thu, 17 Dec 2009 09:19:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r891596 - in /lucene/solr/trunk: CHANGES.txt src/java/org/apache/solr/analysis/CapitalizationFilterFactory.java Date: Thu, 17 Dec 2009 09:19:07 -0000 To: solr-commits@lucene.apache.org From: shalin@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091217091907.33A622388978@eris.apache.org> Author: shalin Date: Thu Dec 17 09:19:06 2009 New Revision: 891596 URL: http://svn.apache.org/viewvc?rev=891596&view=rev Log: SOLR-1660 -- CapitalizationFilter crashes if you use the maxWordCountOption Modified: lucene/solr/trunk/CHANGES.txt lucene/solr/trunk/src/java/org/apache/solr/analysis/CapitalizationFilterFactory.java Modified: lucene/solr/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=891596&r1=891595&r2=891596&view=diff ============================================================================== --- lucene/solr/trunk/CHANGES.txt (original) +++ lucene/solr/trunk/CHANGES.txt Thu Dec 17 09:19:06 2009 @@ -142,6 +142,9 @@ * SOLR-1651: Fixed Incorrect dataimport handler package name in SolrResourceLoader (Akshay Ukey via shalin) +* SOLR-1660: CapitalizationFilter crashes if you use the maxWordCountOption + (Robert Muir via shalin) + Other Changes ---------------------- Modified: lucene/solr/trunk/src/java/org/apache/solr/analysis/CapitalizationFilterFactory.java URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/analysis/CapitalizationFilterFactory.java?rev=891596&r1=891595&r2=891596&view=diff ============================================================================== --- lucene/solr/trunk/src/java/org/apache/solr/analysis/CapitalizationFilterFactory.java (original) +++ lucene/solr/trunk/src/java/org/apache/solr/analysis/CapitalizationFilterFactory.java Thu Dec 17 09:19:06 2009 @@ -206,6 +206,7 @@ char[] backup = null; if (factory.maxWordCount < CapitalizationFilterFactory.DEFAULT_MAX_WORD_COUNT) { //make a backup in case we exceed the word count + backup = new char[termBufferLength]; System.arraycopy(termBuffer, 0, backup, 0, termBufferLength); } if (termBufferLength < factory.maxTokenLength) {