Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 87177 invoked from network); 3 Jun 2008 09:23:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jun 2008 09:23:52 -0000 Received: (qmail 4885 invoked by uid 500); 3 Jun 2008 09:23:48 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 4798 invoked by uid 500); 3 Jun 2008 09:23:48 -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 4787 invoked by uid 99); 3 Jun 2008 09:23:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 02:23:48 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [64.18.3.35] (HELO psmtp.com) (64.18.3.35) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 03 Jun 2008 09:22:52 +0000 Received: from source ([193.201.197.58]) by exprod8ob118.postini.com ([64.18.7.12]) with SMTP; Tue, 03 Jun 2008 02:23:10 PDT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: BooleanQuery Example Date: Tue, 3 Jun 2008 10:23:05 +0100 Message-ID: <39F273ED33612448863A19BBC1FBCFA002D1085A@ms2.lsc.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: BooleanQuery Example Thread-Index: AcjExgH0cSUTEiHrTq+ESm6vwNertQAlM2wg References: <39F273ED33612448863A19BBC1FBCFA002D10819@ms2.lsc.net> From: To: X-Virus-Checked: Checked by ClamAV on apache.org Hi all, Sorry for bothering again, I am referring Lucene Documentation at http://lucene.apache.org/java/docs/queryparsersyntax.html=20 that suggests=20 >> If you are programmatically generating a query string and then parsing it with the query parser then you >>should seriously consider building your queries directly with the query API. In other words, the query parser >>is designed for human-entered text, not for program-generated text. Is there any sample implementation of Lucene Implementation of BooleanQuery using API instead of QueryParser? Cheers Aamir Yaseen -----Original Message----- From: Aamir.Yaseen@globaldatapoint.com [mailto:Aamir.Yaseen@globaldatapoint.com]=20 Sent: 02 June 2008 04:33 PM To: java-user@lucene.apache.org Subject: BooleanQuery Example Hi, I am new to Lucene, so asking some basic question. Is there any example/reference implementation available of Lucene Usage using BooleanQuery using API instead of QueryParser? =20 =20 =20 Cheers Aamir Yaseen=20 =20 =20 This e-mail is confidential and should not be used by anyone who is not the original intended recipient. Global DataPoint Limited does not accept liability for any statements made which are clearly the sender's own and not expressly made on behalf of Global DataPoint Limited. No contracts may be concluded on behalf of Global DataPoint Limited by means of e-mail communication. Global DataPoint Limited Registered in England and Wales with registered number 3739752 Registered Office Middlesex House, 34-42 Cleveland Street, London W1T 4LB --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org