Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 78275 invoked from network); 23 Feb 2006 20:25:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Feb 2006 20:25:57 -0000 Received: (qmail 37968 invoked by uid 500); 23 Feb 2006 20:25:41 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 37827 invoked by uid 500); 23 Feb 2006 20:25:40 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 37796 invoked by uid 99); 23 Feb 2006 20:25:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2006 12:25:40 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2006 12:25:39 -0800 Received: by ehatchersolutions.com (Postfix, from userid 504) id E9BB733CFF2; Thu, 23 Feb 2006 15:25:18 -0500 (EST) Received: from [128.143.167.108] (d-128-167-108.bootp.Virginia.EDU [128.143.167.108]) by ehatchersolutions.com (Postfix) with ESMTP id CA0EA33CFF1 for ; Thu, 23 Feb 2006 15:25:17 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <43FDFD74.8000908@fib.upc.edu> References: <43FDFD74.8000908@fib.upc.edu> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <13C453CD-7915-431D-B452-B57A8DCA48FA@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: about Filttering Date: Thu, 23 Feb 2006 15:25:15 -0500 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.746.2) X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.1 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Feb 23, 2006, at 1:22 PM, Daniel Cortes wrote: > Hi luceners, > > I have a problem that I don't know what to do. > > I want to use ISOLatin1AccentFilter that I found In lucene trunks > > The code in my analyzer is: > > public final TokenStream tokenStream(String fieldName, Reader > reader) { > > if (fieldName == null) throw new IllegalArgumentException > ("fieldName must not be null"); > if (reader == null) throw new IllegalArgumentException("reader > must not be null"); > TokenStream result = new StandardTokenizer(reader); > > result = new ISOLatin1AccentFilter(result); > //result = new ParaulesFilter(new LowerCaseFilter(result)); > result = new StandardFilter(result); > result = new StopFilter(new LetterTokenizer(reader), stoptable); > return result; > } > > Why reason It doesn't works? I try to put some sysouts in de code > Code of ISOLatin1AccentFilter, and the only log that appears is in > the constructor method, but > never do next() method of ISOLatin1AccentFilter. > > I don't have idea to do. thks for any reply to rescue me :D. Well, it's because you have a bug in your code.... the result that is returned is just a StopFilter. You aren't chaining things properly to achieve what you want. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org