Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 6275 invoked from network); 19 Apr 2010 20:44:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Apr 2010 20:44:18 -0000 Received: (qmail 30049 invoked by uid 500); 19 Apr 2010 20:44:15 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 29952 invoked by uid 500); 19 Apr 2010 20:44:15 -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 29940 invoked by uid 500); 19 Apr 2010 20:44:14 -0000 Delivered-To: apmail-lucene-java-dev@lucene.apache.org Received: (qmail 29937 invoked by uid 99); 19 Apr 2010 20:44:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 20:44:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 20:44:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3JKhoZE004821 for ; Mon, 19 Apr 2010 16:43:51 -0400 (EDT) Message-ID: <2522113.20661271709830630.JavaMail.jira@thor> Date: Mon, 19 Apr 2010 16:43:50 -0400 (EDT) From: "Uwe Schindler (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Assigned: (LUCENE-2404) Improve speed of ThaiWordFilter by CharacterIterator, factor out LowerCasing and also fix some bugs (empty tokens stop iteration) In-Reply-To: <33247954.16771271698792299.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Uwe Schindler reassigned LUCENE-2404: ------------------------------------- Assignee: Uwe Schindler (was: Robert Muir) > Improve speed of ThaiWordFilter by CharacterIterator, factor out LowerCasing and also fix some bugs (empty tokens stop iteration) > --------------------------------------------------------------------------------------------------------------------------------- > > Key: LUCENE-2404 > URL: https://issues.apache.org/jira/browse/LUCENE-2404 > Project: Lucene - Java > Issue Type: Bug > Components: contrib/analyzers > Reporter: Uwe Schindler > Assignee: Uwe Schindler > Fix For: 3.1 > > Attachments: LUCENE-2404-2.patch, LUCENE-2404-2.patch, LUCENE-2404.patch, LUCENE-2404.patch > > > The ThaiWordFilter creates new Strings out of term buffer before passing to The BreakIterator., But BreakIterator can take a CharacterIterator and directly process on it without buffer copying. > As Java itsself does not provide a CharacterIterator implementation in java.text, we can use the javax.swing.text.Segment class, that operates on a char[] and is even reuseable! This class is very strange but it works and is in JDK 1.4+ and not deprecated. > The filter also had a bug: It stopped iterating tokens when an empty token occurred. Also the lowercasing for non-thai words was removed and put into the Analyzer by adding LowerCaseFilter. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org