lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller" <>
Subject Re: question about flush(), optimize(), and deleted documents
Date Thu, 19 Jul 2007 12:26:13 GMT
All deletes should be removed after an optimize. Otherwise, I think you'll
have to call isDeleted before trying to access the document. numDocs does
not include deletes, but the document() call will retrieve deletes. You
might try using maxDoc() instead of numDocs().

- Mark

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message