Here is a code snippet of how to do it.
Note: this will return deleted documents too.
IndexReader ir = IndexReader.open(indexPath);
int maxDocs = ir.maxDocs();
//Object[]
dates = new String[maxDocs];
for (int i=0; i<maxDocs; i++) {
dates[i] = ir.document(i).get("pubDate");
}
--Peter
On Sunday, October 6, 2002, at 12:05 AM, Maurits van Wijland wrote:
> Hi all,
>
> Is there anyway one can iterate through the index
> and retrieve all the documents?
>
> Thanks anyone...
>
> regards,
>
> maurits.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>