Click or drag to resize

IFulltextSessionSaveTDocument Method (IEnumerableTDocument)

Namespace:  SphinxConnector.FluentApi
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.4.1
Syntax
void Save<TDocument>(
	IEnumerable<TDocument> documents
)

Parameters

documents
Type: System.Collections.GenericIEnumerableTDocument
An enumerable of documents to save.

Type Parameters

TDocument
The type of document to save.
Exceptions
ExceptionCondition
ArgumentExceptionOccurs when one of the documents is null.
ArgumentNullExceptionOccurs when documents is null.
InvalidOperationExceptionOccurs in case the document does not have a valid id and no DocumentIdGenerator is configured.
ObjectDisposedExceptionOccurs when the session has already been disposed.
See Also