Click or drag to resize
SearchHelperCreateSearchSettings Method (String, IDictionaryString, Boolean, String, SearchSettingsInfo, Boolean)
Creates new SearchSettingsInfo for a field from given parameters. The out parameter fieldChanged indicates, whether the field's definition has changed when compared to ssiOld.

Namespace: CMS.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 11.0.0
Syntax
C#
public static SearchSettingsInfo CreateSearchSettings(
	string name,
	IDictionary<string, bool> flags,
	string fieldname,
	SearchSettingsInfo ssiOld,
	out bool fieldChanged
)

Parameters

name
Type: SystemString
Name of the search field.
flags
Type: System.Collections.GenericIDictionaryString, Boolean
A dictionary of flag names and their values.
fieldname
Type: SystemString
Custom field name.
ssiOld
Type: CMS.DataEngineSearchSettingsInfo
Original search settings to detect changes against. Changes are not detected if null is passed.
fieldChanged
Type: SystemBoolean
After the method returns, indicates whether the field's definition has changed when compared to ssiOld. Set to false if ssiOld is null.

Return Value

Type: SearchSettingsInfo
SearchSettingsInfo initialized from given parameters.
See Also