IFulltext SessionSaveTDocument(IEnumerableTDocument) Method
Save the given documents when FlushChanges is called.
Definition
Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
void Save<TDocument>(
IEnumerable<TDocument> documents
)
VB
Sub Save(Of TDocument) (
documents As IEnumerable(Of TDocument)
)Parameters
- documents IEnumerableTDocument
- An enumerable of documents to save.
Type Parameters
- TDocument
- The type of document to save.
Exceptions
| ArgumentException | Occurs when one of the documents is null. |
| ArgumentNullException | Occurs when documents is null. |
| InvalidOperationException | Occurs in case the document does not have a valid id and no DocumentIdGenerator is configured. |
| ObjectDisposedException | Occurs when the session has already been disposed. |