Click or drag to resize
SearchHelperGetSearchFieldDefaultValue Method
Gets flag value which should be preselected for a column based on its data type. Handles local index flags only.

Namespace: CMS.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 11.0.0
Syntax
C#
public static bool GetSearchFieldDefaultValue(
	string flagName,
	Type formFieldDataTypeEnum
)

Parameters

flagName
Type: SystemString
Name of flag for which to get the default.
formFieldDataTypeEnum
Type: SystemType
Type of field

Return Value

Type: Boolean
Returns default flag value.
Remarks
When determining default search field flags values, CreateDefaultSearchSettings(String, Type) should be used as it collects information for flags of all search index providers.
See Also