Click or drag to resize
SearchFieldsExtensionsAddIndexField Method
Inserts index field into search fields collection if IsIndexField(ISearchIndexInfo, SearchSettingsInfo) is true.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public static void AddIndexField(
	this ISearchFields searchFields,
	ISearchable infoObj,
	ISearchIndexInfo index,
	SearchSettingsInfo searchSetting,
	Type dataType
)

Parameters

searchFields
Type: CMS.DataEngineISearchFields
Search fields collection.
infoObj
Type: CMS.DataEngineISearchable
Searchable object whose field represented by searchSetting is to be processed.
index
Type: CMS.DataEngineISearchIndexInfo
Search index for which the field is being processed.
searchSetting
Type: CMS.DataEngineSearchSettingsInfo
Search settings of DataClass field.
dataType
Type: SystemType
Defines Type of value stored in the added field.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISearchFields. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also