Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 48842 invoked from network); 27 Apr 2009 10:42:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Apr 2009 10:42:47 -0000 Received: (qmail 44795 invoked by uid 500); 27 Apr 2009 10:42:44 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 44693 invoked by uid 500); 27 Apr 2009 10:42:44 -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 44675 invoked by uid 99); 27 Apr 2009 10:42:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2009 10:42:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ian.lea@gmail.com designates 209.85.218.227 as permitted sender) Received: from [209.85.218.227] (HELO mail-bw0-f227.google.com) (209.85.218.227) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2009 10:42:35 +0000 Received: by bwz27 with SMTP id 27so2469285bwz.5 for ; Mon, 27 Apr 2009 03:42:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=W9jPW77NvyyftMPkeF2BWcSBEtLDbEjJAXHrYmyTC+g=; b=Q8dc6TSmZzq1uZN5llA4jTBzKXMzy+SUJxMt35ScfeZHkS575B6YA8EpJRFIVTM+OF gEevCIwB/QTh7H/c0fFGxV/gP8zB5GK3qemLfsoKOVE0/95OG/1K0stKov5Zb1U6gqQ3 SUCfc1oMbiQfYVIF/xNH82V3KnsKbq/lKjxbs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=sKV4BMtgAKldnD/O516PVL1Y0sVEVw4U4ShqsB96MAvoWokuj6nsx1J/h3e98MPtrH TVlaoK5TIJ7N130r0j0Vlc+GiIr2egd39DurIvmFWwa+8bbHCF+SzGDiNhYbAWDdZZg2 172v85OmLv6JefY2zfIQPCZV5D4bjwtSkZmnk= MIME-Version: 1.0 Received: by 10.204.97.204 with SMTP id m12mr5214866bkn.22.1240828933115; Mon, 27 Apr 2009 03:42:13 -0700 (PDT) In-Reply-To: <23253549.post@talk.nabble.com> References: <23253549.post@talk.nabble.com> From: Ian Lea Date: Mon, 27 Apr 2009 11:41:58 +0100 Message-ID: <8c4e68610904270341y8d1ded6q98e0bec392beb3aa@mail.gmail.com> Subject: Re: Why Lucene phrase searching fail? To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org What does query.toString() say? Are you using standard analyzers with standard lowercasing, stop words etc? Knocking up a very simple program/index that demonstrates the problem usually helps: either it will work and help you spot the problem with your existing code, or if you post it here someone will spot the problem. -- Ian. On Mon, Apr 27, 2009 at 11:31 AM, blazingwolf7 wrote: > > hi, > > I am trying to perform a search using Lucene. The keyword : "national india" > This phrase exists inside the content. I try searching it using Lucene and > it fail to return any results. Then I try to search it using Luke, with the > quotes and it also fail to return results. > > Why is that happening? Can anyone advise me on this? > -- > View this message in context: http://www.nabble.com/Why-Lucene-phrase-searching-fail--tp23253549p23253549.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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org