Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 98043 invoked from network); 25 Jun 2004 00:14:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Jun 2004 00:14:01 -0000 Received: (qmail 66551 invoked by uid 500); 25 Jun 2004 00:14:13 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 66510 invoked by uid 500); 25 Jun 2004 00:14:13 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 66469 invoked by uid 99); 25 Jun 2004 00:14:12 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.18.42.14] (HELO nwkea-mail-2.sun.com) (192.18.42.14) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 24 Jun 2004 17:14:12 -0700 Received: from phys-d3-ha21sca-1 ([129.145.155.163]) by nwkea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id i5P0Db0R015444 for ; Thu, 24 Jun 2004 17:13:37 -0700 (PDT) Received: from conversion-daemon.ha21sca-mail1.sfbay.sun.com by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0HZU003018MD89@ha21sca-mail1.sfbay.sun.com> (original mail from Hetan.Shah@Sun.COM) for lucene-user@jakarta.apache.org; Thu, 24 Jun 2004 17:13:37 -0700 (PDT) Received: from Sun.COM (sr1-usjc07-02.SFBay.Sun.COM [129.145.21.53]) by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0HZU00M4C8MO5K@ha21sca-mail1.sfbay.sun.com> for lucene-user@jakarta.apache.org; Thu, 24 Jun 2004 17:13:37 -0700 (PDT) Date: Thu, 24 Jun 2004 17:13:36 -0700 From: Hetan Shah Subject: Various kind of queries To: Lucene Users List Reply-to: Hetan.Shah@Sun.COM Message-id: <40DB6E30.60500@Sun.COM> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20040414 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, You guys have been great! I read lots of threads and am learning a lot about Lucene. Can any one point me to right direction or show me a code sample where I can build queries for 'any word' 'all words' and 'phrase. I tried to look on the Lucene FAQ but I did not understand how to go about it. Any code sample would be really helpful. I am guessing that I would have to use PhraseQuery and BooleanQuery and QueryParser classes. Not sure about the syntax. Thanks. -H --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org