lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik N S" <kart...@controlnet.co.in>
Subject RE: INDEXREADER + MAXDOC
Date Tue, 04 Jan 2005 12:29:26 GMT
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


Mime
View raw message