Suggestion API

Use

The Suggestion API enables you to retrieve and control suggestions displayed when the user enters a search term. The API has the following methods:

getSuggestions (term, callback, suggestionFilter)

Returns portal navigation suggestions for a search term, and passes this data to the specified callback function

Parameters

Parameter

Description

term

A search term

callback

A callback function to which an array of Suggestion object s for the search term is passed

suggestionFilter

A SuggestionFilter object for the search term

Example

More Information

Implementing a Custom Suggestion Provider

How to use the server-side Suggestion Provider to extend the portal mechanism of search suggestions.