CommunitySearch Lightning component

The CommunitySearch Lightning component lets you 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'>

Resources included with this component

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


Since Lightning Locker is automatically enabled on this component, the underscore result templates aren’t supported. You must use HTML templates instead.

Aura event

This component doesn’t offer any Aura events.


The component offers the following options:


  • As of the Coveo for Salesforce v5 release

    The name of the Page Content record that contains the HTML code of your search interface.

  • Prior Coveo for Salesforce versions

    The name of the Visualforce component that contains the HTML code of your search interface.

Default value is communitySearchCoveo.


The name of the search hub to enforce when authenticating a query with this search token, which can also be used in query pipeline condition statements.

Default value is the same value as name.


Whether to use the non-minified versions of the different resources.

Default value is false.