lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: Iterate through all the document ids in the index?
Date Mon, 21 Feb 2005 16:20:23 GMT
William Lee wrote:
> is there a simple and
> fast way to get a list of document IDs through the lucene index?  
> I can use a loop to iterate from 0 to IndexReader.maxDoc and
> check whether an the document id is valid through
> IndexReader.document(i), but this would imply that I have to
> retrieve the documents fields.

Use IndexReader.isDeleted() to check if each id is valid.  This is quite 


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message