SearchTaskInfoProvider CreateTask Method (SearchTaskTypeEnum, String, String, String, Int32, Nullable Boolean )Kentico 8.0 API Reference
Creates task in the database and start indexer if it is required.

Namespace: CMS.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

taskType
Type: CMS.Search SearchTaskTypeEnum
Task type
objectType
Type: OnlineSystem String
Object type. Not required for rebuild or optimize tasks.
objectField
Type: OnlineSystem String
Object field
objectValue
Type: OnlineSystem String
Object value
objectID
Type: OnlineSystem Int32
ID of an object this task relates to, 0 if there is none
runIndexer (Optional)
Type: OnlineSystem Nullable OnlineBoolean 
Whether indexer starts after creation. If not specified this behaviour depends on current settings.
See Also