Result Suggestions

The Result Suggestions feature suggests results as you type in the search box. Clicking one of the result suggestions opens the item directly.

Result Suggestions can be inserted along with a Coveo Searchbox in a full-fledged search page as well as in a website header with a Coveo Global Searchbox.

Result Suggestions send a query to the index after each keystroke. Hence, this feature can have a significant impact on your number of queries per month.

You only have to perform a few simple steps to have the Coveo Searchbox component suggest search results as you type.

To enable results suggestions in your search interface

  1. Open your search page in the Sitecore Experience Editor.

  2. Add a Coveo Searchbox component to your interface, if not already done.

  3. Select the Searchbox Components placeholder. It’s located immediately below the Coveo Searchbox component.

  4. Click Add here.

  5. Select the Coveo Omnibox Result List component and click Select.

  6. Create or select a data source for your Coveo Omnibox Result List component.

  7. Save and publish your search page.

If you have already configured a search page, you might now want to enable results suggestions in your page header global search box.

To enable results suggestions in a Coveo Global Searchbox

  1. In the Sitecore Experience Editor, add a Coveo Global Searchbox component in your page header, if not already done (see Insert and Configure a Global Search Box Using the Coveo for Sitecore Hive Framework).

  2. Select the Searchbox Components placeholder. It’s located immediately below the search box itself.

  3. Click Add here.

  4. Select the Coveo Omnibox Result List component and click Select.

  5. Create or select a data source for your Coveo Omnibox Result List component.

  6. Save and publish your page. Your global searchbox should now suggest results in the Omnibox as you type.

Though a Coveo Global Searchbox is linked to a search page, the Omnibox result lists in both pages behave independently. To obtain the same result suggestions in your global search box as in your search page, your global search box must match the target content, query filtering, and query ranking configurations you have set in your search page. For example, you might need to perform some of the following actions in your global search box:

  • In the Searchbox Components placeholder, add and configure the External Content component (for configuration details, see Display External Content in a Sitecore Search Interface.

  • In the Searchbox Components placeholder, add and configure the Query Filter component (for configuration details, see Using the Query Filter Component.

  • In the Searchbox Components placeholder, add and configure the Query Ranking component (for configuration details, see Using the Query Ranking Component.

  • Edit the Coveo Global Searchbox data source to use the same query pipeline as the search page, if one has been specified in the search page.

Recommended Articles