Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void IndexModifier::deleteDocument ( int32_t  docNum  ) 

Deletes the document numbered docNum.

See also:
IndexReader::deleteDocument(int32_t)
Exceptions:
IllegalStateException if the index is closed

Definition at line 106 of file IndexModifier.cpp.

References assureOpen(), createIndexReader(), and IndexReader::deleteDocument().

                                                 {
      SCOPED_LOCK_MUTEX(directory->THIS_LOCK)
      assureOpen();
      createIndexReader();
      indexReader->deleteDocument(docNum);
}


Generated by  Doxygen 1.6.0   Back to index