Keywords.getUsageCounts (Method)
Returns zero or more structures, each containing information on usage counts for a keyword; for example, an image, subsite, and all usage counts.
Returns:
Keywords_GetUsageCounts_Result (rowlimitedquery)
Arguments:
Name | Type | Required | Description |
---|---|---|---|
subsiteIDOrURL | SubsiteIDorURL_EmptyString | Required | The ID of the target subsite, or the server relative path to the target subsite, or an empty string for the current subsite. |
subsiteScope | SubsiteScopeFilter | Optional. Defaults to '#Request.Constants.SUBSITE_SCOPE_CURRENT#'. | String containing the subsite's scope; for example, 'ALL', 'CURRENT', 'CURRENT_AND_ABOVE', and so on. |
searchOperator | SearchOperator_EmptyString | Optional. Defaults to an empty string. | A search operator or an empty string. Values for this argument can be 'Begins With', 'Contains', 'Ends With', or 'Equals'. |
searchString | String | Optional. Defaults to an empty string. | The value that CommonSpot searches for. |
isCaseSensitiveSearch | Boolean | Optional. Defaults to '0'. | Boolean flag which when set to true tells CommonSpot that the search string is case sensitive. |
attributeFilterList | KeywordFilterAttributeList | Optional. Defaults to an empty string. | Comma-delimited list of keyword attributes that constrain the information retrieved, as follows: 'Default', 'Enforced', or 'Permanent'. If this is an empty string, no filtering occurs. |
orderBy | SQLOrderByClause | Optional. Defaults to 'Word'. | The SQL 'order by' clause indicating which column is used as the returned data's sort key. |
limit | QueryRowLimit | Optional. Defaults to '#this.LIMIT_TO_SCALABILITY_MAX#'. | An integer specifying one more than the maximum number of rows CommonSpot can return. If this value is 0, it returns all records. If it is -1, CommonSpot can return the number of records specified in the UI scalability setting. |
Context:
License Requirements | Keywords |
Permission Requirements | subsite:ManageSubsiteKeywords |
Deny Context | None |
Require Context | None |
Author Lock | (not required) |
Transaction Logging | Transaction logging is disabled for this method |
Customization | This method may be customized at the site level |
Error Codes:
Code | Error Message |
---|---|
40012 | If you specify a search string, you must also specify a search operator. |
Notes:
None