Hi!
Yonik Seeley wrote:
> On Jan 15, 2008 7:15 PM, Alexei Dets <[EMAIL PROTECTED]> wrote:
>> I'm curious, is there any particular reason why Lucene offers
>> IndexReader.deleteDocument(int docNum) but not
>> IndexWriter.deleteDocument(int docNum)?
>
> Documen
Hi!
I'm curious, is there any particular reason why Lucene offers
IndexReader.deleteDocument(int docNum) but not
IndexWriter.deleteDocument(int docNum)?
Rather typical (I think) potential use case:
for (int i = 0; i < indexReader.maxDoc(); ++i) {
if (!indexReader.isDeleted(i)) {
Document do