Suggest Salesforce Knowledge Articles
Provide users with shortcuts to navigate to relevant articles before they perform a
search. Call Search.suggest(searchText, objectType,
options) to return a list of Salesforce Knowledge articles whose titles match a
user’s search query string.
To return suggestions, enable Salesforce Knowledge. See Salesforce Knowledge Implementation Guide for more information on setting up Salesforce Knowledge.
This Visualforce page has an input field for searching articles or accounts. When the user
presses the Suggest button, suggested records are displayed. If there are more than five
results, the More results button appears. To display more results, click the button.
This code is the custom Visualforce controller for the
page: