Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 73396 invoked from network); 18 Feb 2011 16:17:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Feb 2011 16:17:31 -0000 Received: (qmail 39822 invoked by uid 500); 18 Feb 2011 16:17:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 39532 invoked by uid 500); 18 Feb 2011 16:17:25 -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 39508 invoked by uid 99); 18 Feb 2011 16:17:24 -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 16:17:24 +0000 X-ASF-Spam-Status: No, hits=0.2 required=5.0 tests=ASF_LIST_OPS,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [182.71.53.3] (HELO mail.otssolutions.com) (182.71.53.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 16:17:18 +0000 Received: from MAIL.otssolutions.com ([fe80::204d:b7bb:ceb3:c049]) by MAIL.otssolutions.com ([fe80::204d:b7bb:ceb3:c049%11]) with mapi; Fri, 18 Feb 2011 21:46:00 +0530 From: Ranjit Kumar To: "java-user-help@lucene.apache.org" , "java-user@lucene.apache.org" Subject: lucene3.0.3 | get correct document in case of multiple Boolean query in search criteria Thread-Topic: lucene3.0.3 | get correct document in case of multiple Boolean query in search criteria Thread-Index: AcvPhx+k61Pau1EpTBC01/MDuMGL6g== Date: Fri, 18 Feb 2011 16:15:56 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: multipart/alternative; boundary="_000_AD21521D44870544AC66F4FDFC0A474C39ED04ABMAILotssolution_" MIME-Version: 1.0 --_000_AD21521D44870544AC66F4FDFC0A474C39ED04ABMAILotssolution_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable hi, I am using query like criteria =3D (sql OR sqlserver OR "sql server") AND java AND delphi . In this case when i am using default parser as code mention below: QueryParser parser =3D new QueryParser(Version.LUCENE_CURRENT, field, analy= zer); Query query =3D parser.parse(criteria); I am getting same number of document when i am using QueryParser.OR_OPERATO= R in code below: QueryParser parser =3D new QueryParser(Version.LUCENE_CURRENT, field, analy= zer); parser.setDefaultOperator(QueryParser.OR_OPERATOR); Query query =3D parser.parse(criteria); which is not correct. please! suggest me feasible solution. how could get correct document in case of multiple Boolean query in search = criteria? Thanks & Regards, Ranjit Kumar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Pr= ivate, Confidential and Privileged. This e-mail and any files and attachmen= ts transmitted with it are confidential and/or privileged. They are intende= d solely for the use of the intended recipient. The content of this e-mail = and any file or attachment transmitted with it may have been changed or alt= ered without the consent of the author. If you are not the intended recipie= nt, please note that any review, dissemination, disclosure, alteration, pri= nting, circulation or Transmission of this e-mail and/or any file or attach= ment transmitted with it, is prohibited and may be unlawful. If you have re= ceived this e-mail or any file or attachment transmitted with it in error p= lease notify OTS Solutions at info@otssolutions.com =3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --_000_AD21521D44870544AC66F4FDFC0A474C39ED04ABMAILotssolution_--