AttachedResults Lightning Component

Coveo for Salesforce 3 (May 2018)

The AttachedResults component allows your users to see the results they have attached to a specific record. It is meant to work with the AgentPanel Lightning component (see AgentPanel Lightning Component).

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

AttachedResults

Usage

Simply 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="force:hasRecordId,flexipage:availableForRecordHome" access="global">
  <CoveoV2:AttachedResults />
</aura:component>

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 Event

This component offers the following event:

ErrorEvent

This error is fired when an error occurs with the component.

Options

This component offers the following options:

title

The title to show at the top of the component.

Default value is Attached Results.

name

The name of the Visualforce component that should act as your search interface for your Lightning Insight Panel.

Default value is coveoAttachedResults.

searchHub

The name of the searchHub used by Coveo Usage Analytics (Coveo UA), the query pipeline, and Coveo Machine Learning.

This option should have the same value as name.

debug

Coveo for Salesforce 3.42 (November 2019)

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

Default value is false.

Recommended Articles