Click or drag to resize

IFulltextSessionDeleteTDocument Method (Decimal)

Schedule the documents with the given id(s) for deletion. The documents will be deleted when FlushChanges is called.

Namespace:  SphinxConnector.FluentApi
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.3.0
Syntax
void Delete<TDocument>(
	params decimal[] documentIds
)

Parameters

documentIds
Type: SystemDecimal
The id(s) of the document(s) to delete.

Type Parameters

TDocument
The type of document for which the ids are provied.
Exceptions
ExceptionCondition
ArgumentNullExceptionOccurs when documentIds is null.
ObjectDisposedExceptionOccurs when the session has already been disposed.
Examples
Delete the documents with the id's 4, 8, and 15:
using (IFulltextSession fulltextSession = fulltextStore.StartSession())
{
    fulltextSession.Delete<Product>(4, 8, 15);

    fulltextSession.FlushChanges();
}
See Also