Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 90279 invoked from network); 6 Jun 2006 09:40:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jun 2006 09:40:56 -0000 Received: (qmail 27930 invoked by uid 500); 6 Jun 2006 09:40:50 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 27820 invoked by uid 500); 6 Jun 2006 09:40:49 -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 27801 invoked by uid 99); 6 Jun 2006 09:40:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 02:40:49 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [67.15.12.79] (HELO plesk.ev1servers.net) (67.15.12.79) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 02:40:48 -0700 Received: (qmail 10098 invoked from network); 6 Jun 2006 08:55:56 -0000 Received: from unknown (HELO user) (85.154.11.73) by connectivsolution.com with SMTP; 6 Jun 2006 08:55:56 -0000 From: "Kiran Joisher" To: Subject: RE: searching in more than fields on document Date: Tue, 6 Jun 2006 13:52:06 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 In-Reply-To: <934F531A825AFF4F863658E2402E0647078C16B9@ho-kkj-msg3.in.niit.com> Thread-Index: AcaJQqJGFIlbJtl4QcemVokFs0FQlwAC92oA X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20060606094049.6305C10FB010@asf.osuosl.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You can use MultiFieldQueryParser Something like this Query query = MultiFieldQueryParser.parse(new String[]{queryString, queryString, queryString}, new String[]{ASSET_TITLE, ASSET_ARTICLE, ASSET_DIRECTOR_NAMES }, new BooleanClause.Occur[] {BooleanClause.Occur.SHOULD, BooleanClause.Occur.SHOULD, BooleanClause.Occur.SHOULD }, analyzer); Kiran Dama Senior Software Engineer Recreate Solutions - Architects of Digital Convergence 106, Marwah's Complex, Krishnalal Marwah Marg, Saki Naka, Andheri (E), Mumbai 400 072 T: +91 22 2857 6944 / 45 F: +91 22 2857 1123 M: +91 e: @recreatesolutions.com Website: www.recreatesolutions.com CONFIDENTIALITY NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender ("Information") that may be confidential and legally privileged. If you are not the intended recipient, any disclosure, copying, distribution or action taken in reliance on the Information is strictly prohibited. If you have received the Information in error, please contact the sender by reply email and destroy all copies of the original email. Thank you -----Original Message----- From: Amaresh Kumar Yadav [mailto:Amaresh.Yadav@niit.com] Sent: Tuesday, June 06, 2006 1:08 PM To: java-user@lucene.apache.org Subject: searching in more than fields on document Hi All, Will u please give me some clue for searching on more than one field of document. My document has six field and i want to search on three fields. Presently I am able to search on only TITLE field.. query = QueryParser.parse(queryString, "TITLE", analyzer); Regards.. Amaresh Yadav ---------------------------------------------------------------------- DISCLAIMER This email and any files transmitted with it are confidential and are solely for the use of the individual or entity to which it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you receive this transmission in error, please notify the sender by reply email and then destroy the message. Opinions, conclusions and other information in this message that do not relate to official business of the company shall be understood to be neither given nor endorsed by NIIT Ltd. or NIIT Technologies Ltd. Any information contained in this email, when addressed to Clients is subject to the terms and conditions in governing client contract. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org ************************************************************** Scanned by eScan Anti-Virus and Content Security Software. Visit http://www.mwti.net for more info on eScan and MailScan. ************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org