Click or drag to resize
DocumentFieldCreatorCreateField Method
Creates an Azure Search Field for given searchField. The searchIndex and searchable 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 Field CreateField(
	ISearchField searchField,
	ISearchable searchable,
	ISearchIndexInfo searchIndex
)

Parameters

searchField
Type: CMS.DataEngineISearchField
Search field for which to create an Azure Search counterpart.
searchable
Type: CMS.DataEngineISearchable
Searchable for which the field is being created.
searchIndex
Type: CMS.DataEngineISearchIndexInfo
Index for which the field is being created.

Return Value

Type: Field
Returns Azure Search field representation for searchField.
Remarks
The default implementation maps RETRIEVABLE, SEARCHABLE, FACETABLE, FILTERABLE and SORTABLE flags to their Azure Search counterparts.
See Also