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.SearchAssembly: CMS.Search (in CMS.Search.dll) Version: 13.0.131
Syntax 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:
SearchSettingsInfoSearchSettingsInfo initialized from given parameters.
See Also