Method DeleteDocuments
DeleteDocuments(Term)
Deletes the document(s) containing term
.
NOTE: if this method hits an
Declaration
public virtual void DeleteDocuments(Term term)
Parameters
Type | Name | Description |
---|---|---|
Term | term | the term to identify the documents to be deleted |
Exceptions
Type | Condition |
---|---|
CorruptIndexException | if the index is corrupt |
DeleteDocuments(Term[])
Deletes the document(s) containing any of the terms. All given deletes are applied and flushed atomically at the same time.
NOTE: if this method hits an
Declaration
public virtual void DeleteDocuments(params Term[] terms)
Parameters
Type | Name | Description |
---|---|---|
Term[] | terms | array of terms to identify the documents to be deleted |
Exceptions
Type | Condition |
---|---|
CorruptIndexException | if the index is corrupt |
DeleteDocuments(Query)
Deletes the document(s) matching the provided query.
NOTE: if this method hits an
Declaration
public virtual void DeleteDocuments(Query query)
Parameters
Type | Name | Description |
---|---|---|
Query | query | the query to identify the documents to be deleted |
Exceptions
Type | Condition |
---|---|
CorruptIndexException | if the index is corrupt |
DeleteDocuments(Query[])
Deletes the document(s) matching any of the provided queries. All given deletes are applied and flushed atomically at the same time.
NOTE: if this method hits an
Declaration
public virtual void DeleteDocuments(params Query[] queries)
Parameters
Type | Name | Description |
---|---|---|
Query[] | queries | array of queries to identify the documents to be deleted |
Exceptions
Type | Condition |
---|---|
CorruptIndexException | if the index is corrupt |