Search.optimizeCollection (Method)

Optimizes one or more full-text search collections.

Returns:

Void

Arguments:

Name Type Required Description
collectionNameList CollectionName_ExistingList Required A comma-delimited list of collection names that CommonSpot will optimize.
serverIDList ServerIDList_All Optional. Defaults to '`Request.CP.ServerID`'. A comma delimited list of one or more unique server identifiers, or 'All' for all known servers.

Context:

License Requirements FullTextIndex
Permission Requirements anySubsite:SubsiteAdmin
Deny Context None
Require Context (none)
Author Lock (not required)
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization This method may be customized at the site level

Error Codes:

Code Error Message
40005 CommonSpot could not optimize collection '$1'.

Notes:

None