Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 40457 invoked from network); 18 Feb 2011 11:05:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Feb 2011 11:05:44 -0000 Received: (qmail 23679 invoked by uid 500); 18 Feb 2011 11:05:42 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 23354 invoked by uid 500); 18 Feb 2011 11:05:38 -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 23344 invoked by uid 99); 18 Feb 2011 11:05:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 11:05:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ian.lea@gmail.com designates 209.85.214.48 as permitted sender) Received: from [209.85.214.48] (HELO mail-bw0-f48.google.com) (209.85.214.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 11:05:32 +0000 Received: by bwz8 with SMTP id 8so3636968bwz.35 for ; Fri, 18 Feb 2011 03:05:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=kohLv21auk32Sr6s07h4c8+be+RWQsOvDTexCao34hU=; b=Yru3pyHxpfapU07zJEV2bp7xj/omXjMgOo4rcuggWts3Xt1Nfj0r/GYA16DET+ynj3 N9uNqkCgKxmvTKtiDGaIi9uqrdJ0UeryqaXDVZPhmCVjBn1b+rGG+do1H5bajEDHYWis nvcZIcfFycTYALQVlwo2qi8M0i6eouCo8A9D8= 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=l5ZW6CMLmzQ+qxZK7Vj1WaCgg7/a5jRpK+wYCczviBKX1m5vxqW11jLBg5ytU5IS5E fKKVqJ6s+9Kf2jMhnu2XzFHra5g5YRf3REMhWOlvHZ+QnbxbZ5oWYTewuFEcCFdSYIMz U0Bw+QRfI8PQuFsPCc5J8DATCU06YN2AtyaHo= Received: by 10.204.81.72 with SMTP id w8mr509794bkk.205.1298027110403; Fri, 18 Feb 2011 03:05:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.70.139 with HTTP; Fri, 18 Feb 2011 03:04:50 -0800 (PST) In-Reply-To: References: From: Ian Lea Date: Fri, 18 Feb 2011 11:04:50 +0000 Message-ID: Subject: Re: Keyword Analyzer To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Presumably because without the quotes the parser is splitting it up into 2 terms. Why bother parsing it? Just build the query directly. -- Ian. On Fri, Feb 18, 2011 at 10:38 AM, Ganesh wrote: > Hello all, > > I am using Keyword analyzer to index a field and while using queryparser,= I am using the same analyzer. =A0I am indexing the text Hello world and wh= ile searching using queryparser.parse it is not returning me any results. I= need to use the text within the codes qp.parse("Hello world"); > > My question is why i need to give the text within codes (basically as a p= hrase). While indexing i have not given and it is indexing as single term a= nd while searching also it should consider the complete text as single term= . > > Regards > Ganesh > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Downl= oad Now! http://messenger.yahoo.com/download.php > > --------------------------------------------------------------------- > 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