Ensure that Coveo Machine Learning query suggestions are requested

When users access your search interface, they likely type a query in the search box. To provide the best possible search experience, you should ensure that your implementation leverages Coveo Machine Learning (Coveo ML) Query Suggestion (QS) models.

Depending on how you choose to build your search interface, see:

Note

If your implementation doesn’t rely on any of these UI libraries, see Provide Coveo Machine Learning query suggestions.

Access your browser’s network monitoring tool

  1. Open your web browser’s developer tools.

    Note

    The examples in this article use the Google Chrome developer tools. For browser-specific information, see:

  2. Select the Network tab.

Test query suggestions

  1. Access a page in which you integrated a Coveo-powered search box.

  2. Access your browser’s network monitoring tool.

  3. Start typing a query in the search box.

    In the network monitoring tool, under the Name column, you should see a request whose path contains /rest/search/v2/querySuggest for every keystroke.

    Query suggestions in a search interface | Coveo
  4. Click the latest /rest/search/v2/querySuggest request.

    In the Response tab, you should see the currently displayed query completions.

    View query suggestions in event response | Coveo
Note

Coveo ML QS must be leveraged in your search interface for /rest/search/v2/querySuggest requests to be displayed under the Name column of your developer tools.