public UpdateDocument ( Term term, Lucene.Net.Documents.Document doc ) : void | ||
term | Term | the term to identify the document(s) to be /// deleted /// |
doc | Lucene.Net.Documents.Document | the document to be added /// |
return | void |
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.
public UpdateDocument ( Term term, Lucene.Net.Documents.Document doc ) : void | ||
term | Term | the term to identify the document(s) to be /// deleted /// |
doc | Lucene.Net.Documents.Document | the document to be added /// |
return | void |