Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 88796 invoked from network); 11 Mar 2007 11:37:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2007 11:37:10 -0000 Received: (qmail 79921 invoked by uid 500); 11 Mar 2007 11:37:13 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 79894 invoked by uid 500); 11 Mar 2007 11:37:13 -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 79883 invoked by uid 99); 11 Mar 2007 11:37:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Mar 2007 04:37:12 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ruchithakur1@gmail.com designates 64.233.182.184 as permitted sender) Received: from [64.233.182.184] (HELO nf-out-0910.google.com) (64.233.182.184) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Mar 2007 03:37:01 -0800 Received: by nf-out-0910.google.com with SMTP id g2so1446460nfe for ; Sun, 11 Mar 2007 04:36:40 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=EWFWCAVIFxAt86hSVPrfc31wgISsRINk8ivz62sdCOklBZWIlS5PDulkjOHpSj+lb1v5BsY1HLk7+PRK6XcNUvWcsNdiP4MSAiHsJd3UEtiZuXReiKq7Iqri3mNWYwYGwqSKjsnm4wBYfm/w0+Xfm7YPzX1MNyd6HFxwIu4NFRI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=XJvmuuo1K5BPOri075yOtIubtVWhvvN9UGl8nGIMa7Ejec3Yn8bVcV1/kDso6TNskxdbsXn3b3onVijA5dS6AdFtbPsEm5UgbDCpnLa6TCaIrIycI/VHGdrBRjw1eEOnbZGrv5Ldk4bjYRHNwGruH5mDP36S8SHRI5zUnUsUAco= Received: by 10.115.108.1 with SMTP id k1mr777795wam.1173612999163; Sun, 11 Mar 2007 04:36:39 -0700 (PDT) Received: by 10.114.131.16 with HTTP; Sun, 11 Mar 2007 04:36:39 -0700 (PDT) Message-ID: Date: Sun, 11 Mar 2007 17:06:39 +0530 From: "ruchi thakur" To: java-user@lucene.apache.org Subject: Re: Query String for a phrase? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_20254_19620374.1173612999127" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_20254_19620374.1173612999127 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline am sorry , guess "*" caused confusion. My question is that, using jakarta&apache am able to search for jakarta apache, but was confused as no reference to this query String(jakarta&apache) could find anywhere on net. So just wanted to make sure if jakarta&apache -> jakarta apache like "jakarta apache" -> jakarta apache ie; jakarta&apache seaches for phrase jakarta apache Regards, Ruchi On 3/11/07, Doron Cohen wrote: > > "ruchi thakur" wrote on 10/03/2007 19:32:14: > > > does that mean* jakarta&apache* should search for * jakartaapache* > > I assume '*' here is for emphasizing the query text, - this is somewhat > confusing because '*' is part of Lucene's query syntax for wildcard > search. > To the question - usually no, but it depends. You could write an analyzer > that would emit a token jakartaapache for input of jakarta&apache though > my > guess is that this is not the case, and jakarta&apache and jakartaapache > are two distinct words in your index. See the Lucene FAQ, in particular " > Why am I getting no hits / incorrect hits?", starting with its > recommendation to examine query.toString(). > > Hope this helps, > Doron > > > But using *jakarta&apache* am able to search for *jakarta apache* , but > was > > confused as no reference to this query String(jakarta&apache) could find > > anywhere on net. > > > > Regards, > > Ruchi > > On 3/8/07, Doron Cohen wrote: > > > > > > Most likely the string jakarta&apache is analyzed as a single word, > > > both at indexing time and at search time. > > > > > > See also "AnalysisParalysis" in Lucene Wiki. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > ------=_Part_20254_19620374.1173612999127--