Enable query suggestions in a Coveo search box
Enable query suggestions in a Coveo search box
Coveo Atomic Library
The atomic-search-box
component has built-in support to display query suggestions.
To use any required Query Suggestion (QS) model, specify its associated query pipeline in the pipeline
property of the parent atomic-search-interface
component, or enforce it through the search token.
The atomic-search-box-query-suggestions
component can be used to further configure the query suggestion behavior.
Coveo Headless Library
The suggestions
attribute of the SearchBox controller lets you implement query suggestions.
Configure the Search Engine to use the appropriate query pipeline, or enforce the pipeline through the search token.
Coveo JavaScript Search Framework
For more details on how to implement query suggestions in a Coveo JavaScript Search Framework powered interface, see provide search box suggestions in the JavaScript Search Framework documentation.