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 fast.


Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to