Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 11691 invoked from network); 16 Feb 2004 11:13:02 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Feb 2004 11:13:02 -0000 Received: (qmail 82895 invoked by uid 500); 16 Feb 2004 11:12:30 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 82866 invoked by uid 500); 16 Feb 2004 11:12:30 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 82841 invoked from network); 16 Feb 2004 11:12:29 -0000 Received: from unknown (HELO smtprelay02.ispgateway.de) (62.67.200.157) by daedalus.apache.org with SMTP; 16 Feb 2004 11:12:29 -0000 Received: (qmail 11616 invoked from network); 16 Feb 2004 11:12:42 -0000 Received: from unknown (HELO tcn.local) ([pbs]652696@[217.231.246.75]) (envelope-sender ) by smtprelay02.ispgateway.de (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 16 Feb 2004 11:12:42 -0000 Received: from localhost (localhost [127.0.0.1]) by tcn.local (Postfix) with ESMTP id CE2961FA4 for ; Mon, 16 Feb 2004 12:12:42 +0100 (CET) From: lucene@nitwit.de To: "Lucene Users List" Subject: Re: Did you mean... Date: Mon, 16 Feb 2004 12:12:42 +0100 User-Agent: KMail/1.6 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200402161212.42308.lucene@nitwit.de> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Monday 16 February 2004 12:02, Viparthi, Kiran (AFIS) wrote: > As mentioned I didn't use any information from index so I didn't uses any > TokenStream but let me check it out. deprecated: String description = doc.getField("contents").stringValue(); final java.io.Reader r = new StringReader(description); final TokenStream in = analyzer.tokenStream(r); for (Token token; (token = in.next()) != null; ) { System.out.println(token.termText()); } But the result is the same, the words are actually truncated (instead of "has", "had", "have", etc. only "ha") :-( --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org