Suggest item keywords for auto-completion of default search

get

/content/management/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&repositoryId= 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
repositoryIdNoThis parameter limits results to specific repository.Defaults to ALL.
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
  • 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
  • This parameter accepts a repository id and result will contain only items belonging to the specified repository. This is an optional parameter and by default returns results from all repositories.
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : ItemSuggestKeywords
Type: object
ItemSuggestKeywords
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 : AggregationResult
Type: object
Show Source
Nested Schema : ItemKeyword
Type: object
ItemKeyword.
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

404 Response

Not found.

500 Response

Internal server error.
Back to Top