Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 1144 invoked from network); 7 Oct 2007 22:07:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Oct 2007 22:07:45 -0000 Received: (qmail 80893 invoked by uid 500); 7 Oct 2007 22:07:28 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 80863 invoked by uid 500); 7 Oct 2007 22:07:28 -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 80852 invoked by uid 99); 7 Oct 2007 22:07:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Oct 2007 15:07:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.69.42.181] (HELO radix.cryptio.net) (208.69.42.181) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Oct 2007 22:07:30 +0000 Received: by radix.cryptio.net (Postfix, from userid 1007) id 4C2F271C128; Sun, 7 Oct 2007 15:07:10 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by radix.cryptio.net (Postfix) with ESMTP id 48DFB71C121 for ; Sun, 7 Oct 2007 15:07:10 -0700 (PDT) Date: Sun, 7 Oct 2007 15:07:10 -0700 (PDT) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: Use of Field(String name, TokenStream tokenStream) In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : I am observing that a Field constructed using tokenStream i.e Filed fl = : new Field(String name, TokenStream tokenStream) is not converted to the : lower case when stored in the index. : The terms in the index are exactly same as those in tokenStream. : When I do a phrase search,the PhraseQuery converts the search string to : all lower case , however it does not find any hits in the index because in if this is the case, then it is because the Analyzer used by your QueryParser is lowercasing the tokens. when you use the Field constructor that takes a TokenStream, all of the analysis for the source text should have alreayd been done -- if not, then use one of the other constructors and let the Analyser do it's thing when you add the document to your index. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org