Method DeleteDocuments
DeleteDocuments(Term)
Deletes the document(s) containing term
.
NOTE: if this method hits an OutOfMemoryError you should immediately close the writer. See above for details.
Declaration
public virtual void DeleteDocuments(Term term)
Parameters
Type | Name | Description |
---|---|---|
Term | term | the term to identify the documents to be deleted |
DeleteDocuments(Term[])
Deletes the document(s) containing any of the terms. All deletes are flushed at the same time.
NOTE: if this method hits an OutOfMemoryError you should immediately close the writer. See above for details.
Declaration
public virtual void DeleteDocuments(params Term[] terms)
Parameters
Type | Name | Description |
---|---|---|
Term[] | terms | array of terms to identify the documents to be deleted |
DeleteDocuments(Query)
Deletes the document(s) matching the provided query.
NOTE: if this method hits an OutOfMemoryError you should immediately close the writer. See above for details.
Declaration
public virtual void DeleteDocuments(Query query)
Parameters
Type | Name | Description |
---|---|---|
Query | query | the query to identify the documents to be deleted |
DeleteDocuments(Query[])
Deletes the document(s) matching any of the provided queries. All deletes are flushed at the same time.
NOTE: if this method hits an OutOfMemoryError you should immediately close the writer. See above for details.
Declaration
public virtual void DeleteDocuments(params Query[] queries)
Parameters
Type | Name | Description |
---|---|---|
Query[] | queries | array of queries to identify the documents to be deleted |