Customizing the Standalone Search Box

When using the Coveo standalone search box in your community, your administrators might want to customize it to fit their needs. This page explains how to access the options panel and which parameters can be modified.

Accessing the Standalone Search Box Options

  1. Ensure you have included a Coveo Community Searchbox in your Community.

  2. In the Experience Builder, select the Coveo Community Searchbox.

  3. An option panel should appear, allowing you to modify the Coveo standalone search box options.

    1500-option-panel

Modifying the Standalone Search Box Options

The Coveo StandaloneSearchbox component offers many options that help you customize your experience.

Name

The name of the Coveo Search component you want to associate to your search box.

The default value is communitySearchCoveo.

It’s good practice to use the same name value as your Community Search component.

Search Hub

The name of the search hub used for Coveo Usage Analytics (Coveo UA) reports.

The default value is the same value as name.

It’s good practice to use the same searchHub value as your Community Search component.

Placeholder

The placeholder text to put in the search box when no query is entered.

Trigger Query on Clear

Specifies whether to trigger a query when the search box is cleared (see Querybox - triggerQueryOnClear).

Enable Query Syntax

Specifies whether special characters should be interpreted as the Coveo Query Syntax (see Querybox - enableQuerySyntax).

Enable Query Extension Suggest

Specifies if the search box completes the syntax for query extensions (see Omnibox - enableQueryExtensionAddon).

Search Url

The page where your search box should redirect.

Depending on your Salesforce version, the value should either be:

Before Winter ‘18: search/all/home/%40uri

Winter ‘18 and up: global-search/%40uri

Debug

Specifies whether to load the non-minified versions of the resources.

Facet Value Suggestion Fields

Coveo for Salesforce 3.46 (February 2020)

The specific fields a Coveo Machine Learning (Coveo ML) Query Suggestions (QS) model use to scope its suggestions.

In your Coveo standalone search box, you want to scope the query suggestions according to the values of the @filetype field. Therefore, you enter @filetype in the Facet value suggestion fields box.

For more information on facet value suggestions, see:

This standalone search box option is only available for Organizations that use the Coveo Community Searchbox (see Additional Considerations).

Additional Considerations

If you’re using the Coveo Searchbox instead of the Coveo Community Searchbox (see the note in Adding the Coveo Standalone Search Box), the action panel looks like the following:

Therefore, you can specify the following options:

Enable Query Suggest

Specifies whether to enable Coveo Machine Learning (see Omnibox - enableQuerySuggestAddon).

Enable Field Suggest

Specifies whether field names should be suggested (see Omnibox - enableFieldAddon).

If you’re using the Coveo Searchbox instead of the Coveo Community Searchbox, you don’t have access to the Facet value suggestion fields option.

What’s Next?

You can create a custom standalone search box for your Lightning community (see Creating a Custom Standalone Search Box for Your Lightning Community).

What's Next for Me?