 | IFulltextSessionDeleteTDocument(Int32) Method |
Schedule the documents with the given id(s) for deletion. The documents will be deleted when
FlushChanges is called.
Namespace: SphinxConnector.FluentApiAssembly: SphinxConnector (in SphinxConnector.dll) Version: 6.0.0
Syntaxvoid Delete<TDocument>(
params int[] documentIds
)
Sub Delete(Of TDocument) (
ParamArray documentIds As Integer()
)
Parameters
- documentIds Int32
- The id(s) of the document(s) to delete.
Type Parameters
- TDocument
- The type of document for which the ids are provied.
Exceptions
Example
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