Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 8485 invoked from network); 4 Jan 2005 12:25:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Jan 2005 12:25:31 -0000 Received: (qmail 68832 invoked by uid 500); 4 Jan 2005 12:25:16 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 68788 invoked by uid 500); 4 Jan 2005 12:25:15 -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 68763 invoked by uid 99); 4 Jan 2005 12:25:15 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=SUBJ_ALL_CAPS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO daakghar.controlnet.co.in) (203.199.26.74) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 04 Jan 2005 04:25:11 -0800 Received: from kartik1 ([192.168.4.1]) by dakiya.controlnet.co.in (Netscape Messaging Server 4.15) with ESMTP id I9SLWL00.0VX for ; Tue, 4 Jan 2005 18:11:09 +0530 From: "Karthik N S" To: "Lucene Users List" Subject: RE: INDEXREADER + MAXDOC Date: Tue, 4 Jan 2005 17:59:26 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <51A9EBDB-5E45-11D9-A442-000393A564E6@ehatchersolutions.com> Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Erik Apologies....... I would like to EXTRACT the DATA from the various fields of the Last Document [as u said ] Ex: at IndexReader.maxDoc = 100 doc.get("Content") == "ISBN100" doc.get("name") == "LUCENE IN ACTION"" doc.get("author") == "Erik Hatcher" ..... This is my Requirement. Please With regards Karthik -----Original Message----- From: Erik Hatcher [mailto:erik@ehatchersolutions.com] Sent: Tuesday, January 04, 2005 5:10 PM To: Lucene Users List Subject: Re: INDEXREADER + MAXDOC On Jan 4, 2005, at 5:19 AM, Karthik N S wrote: > On using the integer number of Indexreader.maxDoc() API , > > Is it possible to get the VALUES from the varoius fieldtypes. > > ex:- 'docs.get("contents") at IndexReader.maxdoc()' > > > > If so How...?? Just to be sure I understand... you want the last document in the index? IndexReader.document(n) will give you this. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org