lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donna L Gresh <>
Subject Re: question about flush(), optimize(), and deleted documents
Date Thu, 19 Jul 2007 13:36:21 GMT
Thank you-- this is what appeared to be the case, but I wanted to check if 
was something simple I wasn't understanding--

>All deletes should be removed after an optimize. Otherwise, I think 
>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().

Donna L. Gresh
Services Research, Mathematical Sciences Department
IBM T.J. Watson Research Center
(914) 945-2472

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