Search Lightning Component

DELETED - Non-Locker Compliant

The Search Lightning component allows you to insert a search component in your Experience Cloud site.

It takes care of wrapping and including the correct scripts and different resources needed to do so.

For a tutorial on how to implement a custom Lightning component, see Integrating the Coveo components in a custom Lightning component.


Reference it in your Lightning component as you would for any other Aura component, using the namespace prefix of the Coveo package.

<aura:component implements='forceCommunity:availableForAllPageTypes'>
  <CoveoV2:Search />

Resources Included With This Component

This component includes the Coveo JavaScript Search Framework, the jQuery (latest 3.x.x version) and Underscore.js (latest 1.x.x version) libraries, and the Coveo for Salesforce specific assets.

Aura Events

This component inherits from the Base Lightning component, and shares all of its aura events (see Aura Events).


This component inherits from the Base Lightning component and supports all its options (see Options).

However, the default value changes for the following option:


This option is set to communityCoveo by default when used with this component.

If this Visualforce component doesn’t exist, you will be prompted to create it when inserting the Lightning component in your community.

You can reference another Visualforce search component by changing this option:

<CoveoV2:Search name="<MY_CUSTOM_SEARCH_PAGE>"/>

Where you replace <MY_CUSTOM_SEARCH_PAGE> by the name of the Visualforce search component you want to use.