Apache Lucene.Net 2.4.0 Class Library API

IndexWriter.DeleteDocuments Method

Deletes the document(s) containing

term
.

Overload List

Deletes the document(s) containing

term
.

public virtual void DeleteDocuments(Term);

Deletes the document(s) containing any of the terms. All deletes are flushed at the same time.

public virtual void DeleteDocuments(Term[]);

Deletes the document(s) matching the provided query. @param query the query to identify the documents to be deleted @throws CorruptIndexException if the index is corrupt @throws System.IO.IOException if there is a low-level IO error

public void DeleteDocuments(Query);

Deletes the document(s) matching any of the provided queries. All deletes are flushed at the same time. @param queries array of queries to identify the documents to be deleted @throws CorruptIndexException if the index is corrupt @throws System.IO.IOException if there is a low-level IO error

public void DeleteDocuments(Query[]);

See Also

IndexWriter Class | Lucene.Net.Index Namespace