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.AzureAssembly: CMS.Search.Azure (in CMS.Search.Azure.dll) Version: 13.0.131
Syntax 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:
DocumentReturns Azure Search document for
searchable.
See Also