Apache Lucene.Net 2.4.0 Class Library API

IndexWriter.UpdateDocument Method

Updates a document by first deleting the document(s) containing

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).

Overload List

Updates a document by first deleting the document(s) containing

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).

public virtual void UpdateDocument(Term,Document);

Updates a document by first deleting the document(s) containing

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).

public virtual void UpdateDocument(Term,Document,Analyzer);

See Also

IndexWriter Class | Lucene.Net.Index Namespace