Suggest item keywords for auto-completion of default search

get

/content/published/api/v1.1/items/suggest

Suggestion of item keywords for auto-completion of search terms in a default search.
For example to get suggested auto completion keywords/phrase for the term "Race", the following API :
/items/suggest?kw=Race&limit=10&channelToken= will return a collection of suggested keywords/phrases to auto complete search term.

Query Parameters :
Parameter NameRequiredDescription
kwNoPartial search term. Defaults to empty string "".
languageNoLanguage tag with variants."".
limitNoThis parameter limits size of the results.Defaults to 10
channelTokenYesThis parameter accepts channelToken of a channel and is used to control the returned results. The result will contain keyword suggested for items targeted to the channel that the specified channelToken belongs to.
linksNoThis parameter accepts a comma-separated list of link names. By default, this parameter gives all the links applicable. Possible values are: self, canonical, describedby

Request

Query Parameters
  • This parameter accepts channelToken of a channel and is used to control the returned results. The result will contain keyword suggested for items targeted to the channel that the specified channelToken belongs to. A channel token must be provided as a query parameter.
  • Partial search term
  • This parameter accepts a language tag along with variants(e.g. en-US) to filter keyword suggestions in a specific language
  • This parameter accepts a non negative integer and is used to control the size of keywords suggested for auto-completion.
    Default Value: 10
Back to Top

Response

Supported Media Types

200 Response

Successful operation.
Body ()
Root Schema : CollectionProperties
Type: object
CollectionProperties.
Show Source
Nested Schema : aggregationResults
Type: array
Aggregation results.
Show Source
Nested Schema : items
Type: array
Singular resources contained in the collection.
Show Source
Nested Schema : pinned
Type: array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : properties
Type: object
Additional Properties Allowed
Show Source
additional collection properties.
Nested Schema : AggregationResult
Type: object
Show Source
Nested Schema : items
Type: object
Nested Schema : additionalProperties
Type: object

400 Response

Bad Request. The server is unable to process the request on the client side due to malformed syntax, invalid data or message framing.

403 Response

Forbidden. Client is not authorized to perform this request.

500 Response

Internal server error. An unexpected error condition encountered in the system.
Back to Top