term
and then adding the new document. The delete and then add are atomic as seen by a reader on the same index (flush may happen only after the add). NOTE: if this method hits an OutOfMemoryError you should immediately close the writer. See above for details.
@param term the term to identify the document(s) to bedeleted @param doc the document to be added @throws CorruptIndexException if the index is corrupt @throws IOException if there is a low-level IO error
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|