NOTE: this method can only recover documents marked for deletion but not yet removed from the index; when and how Lucene removes deleted documents is an implementation detail, subject to change from release to release. However, you can use {@link #numDeletedDocs} on the current IndexReader instance tosee how many documents will be un-deleted.
@throws StaleReaderException if the index has changedsince this reader was opened
@throws LockObtainFailedException if another writerhas this index open (write.lock
could not be obtained)
@throws CorruptIndexException if the index is corrupt
@throws IOException if there is a low-level IO error
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|