interface SearchBoxOptions {
    clearFilters?: boolean;
    enableQuerySyntax?: boolean;
    highlightOptions?: SuggestionHighlightingOptions;
    id?: string;
    numberOfSuggestions?: number;
}

Hierarchy (View Summary)

Properties

clearFilters?: boolean

Whether to clear all active query filters when the end user submits a new query from the search box. Setting this option to "false" is not recommended & can lead to an increasing number of queries returning no results.

enableQuerySyntax?: boolean

Whether to interpret advanced Coveo Cloud query syntax in the query.

false

Specifies delimiters to highlight parts of a query suggestion that e.g match, do not match the query.

id?: string

A unique identifier for the controller. By default, a unique random identifier is generated.

numberOfSuggestions?: number

The number of query suggestions to request from Coveo ML (e.g., 3).

Using the value 0 disables the query suggest feature.

5