Click or drag to resize
DocumentCreatorCreateDocument Method
Creates an Azure Search Document for given searchDocument. The searchable, searchIndex and fields parameters are to provide contextual information for the creation.

Namespace: CMS.Search.Azure
Assembly: CMS.Search.Azure (in CMS.Search.Azure.dll) Version: 12.0.0
Syntax
C#
public Document CreateDocument(
	SearchDocument searchDocument,
	ISearchable searchable,
	ISearchIndexInfo searchIndex,
	IEnumerable<Field> fields = null
)

Parameters

searchDocument
Type: CMS.DataEngineSearchDocument
Search document for which to create an Azure Search document.
searchable
Type: CMS.DataEngineISearchable
Searchable for which the document is being created.
searchIndex
Type: CMS.DataEngineISearchIndexInfo
Index for which the document is being created.
fields (Optional)
Type: System.Collections.GenericIEnumerableField
Enumeration of Azure Search fields corresponding to the searchable.

Return Value

Type: Document
Returns Azure Search document for searchable.
See Also