From java-user-return-37378-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Wed Nov 26 19:30:48 2008 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 51091 invoked from network); 26 Nov 2008 19:30:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2008 19:30:47 -0000 Received: (qmail 17915 invoked by uid 500); 26 Nov 2008 19:30:52 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 17873 invoked by uid 500); 26 Nov 2008 19:30:52 -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 17862 invoked by uid 99); 26 Nov 2008 19:30:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2008 11:30:52 -0800 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2008 19:29:25 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1L5Q5T-00034b-9l for java-user@lucene.apache.org; Wed, 26 Nov 2008 11:30:11 -0800 Message-ID: <20707534.post@talk.nabble.com> Date: Wed, 26 Nov 2008 11:30:11 -0800 (PST) From: AlexElba To: java-user@lucene.apache.org Subject: Re: how to search for starts with multiple words in lucene In-Reply-To: <20697741.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ramalex1@yahoo.com References: <20697741.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I think you can achieve your goal using StandardAnalyzer during indexing and for search, and use WildcardQuery for Query I think it will work!! naveen.a wrote: > > Hi, > > Below is a document in lucene > --------------------------------------------- > Field Value > --------------------------------------------- > ID:1 > 110_a:library and information > --------------------------------------------- > I need to search for starts with logic, below are the search cases for the > above document > > ------------------------------------------------------------------------------ > Query Result > ------------------------------------------------------------------------------ > 110_a:l* ID - 1 > 110_a:library* ID - 1 > 110_a:library * No Results > 110_a:library a* No Results > 110_a:"library a*" No Results > ------------------------------------------------------------------------------ > here, if i apply single word for starts with search, it is found, > but if i add any space after the first word, it is not found > > so, how to apply the query to search for starts with multiple words > -- View this message in context: http://www.nabble.com/how-to-search-for-starts-with-multiple-words-in-lucene-tp20697741p20707534.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org