Customizing the Full Search Button Options

Lightning Experience Coveo for Salesforce 3.42 (November 2019)

The FullSearch component is a button automatically displayed in the Coveo Insight Panel Lightning Component that allows your users access to a full length Coveo-powered search page inside a Salesforce console.

FullSearchButton

You can either modify the options by using the options in the Interface Editor or directly in the code view.

FullSearchInterfaceEditor

Changing the Title

You can modify the displayed title of the button by entering a title in the Title section or by adding the following code:

<div class="CoveoFullSearch" data-title="My Full Search"></div> where the default value is Full Search.

Opening the Full Search Page in the Same Tab as the Coveo Insight Panel Lightning Component

You can open the Full Search page in a new subtab by clicking the check box or by adding the following code:

<div class="CoveoFullSearch" data-open-in-subtab="false"></div> where the default value is true.

Making the Button Invisible

You can remove the button by clicking the check box or by adding the following code:

<div class="CoveoFullSearch" data-visible="false"></div> where the default value is true.

Changing the Full Search Page’s Search Hub

If you want to change the search hub to make it the same as the Coveo Insight Panel Lightning Component search hub, follow the steps below.

You must set the fullSearchComponent option in your Coveo Insight Panel Lightning Component (see AgentPanel Lightning Component).

  1. Log in to your Salesforce organization using an administrator account.

  2. Open your Developer Console.

  3. Create a new Lightning component (see Create Aura Components in the Developer Console), using the following code sample:

<aura:component implements="flexipage:availableForRecordHome,lightning:isUrlAddressable" access="global" >
    <CoveoV2:FullSearch name="coveoFullSearch" searchHub="<MY_SEARCH_HUB>" pageReference="{! v.pageReference}"></CoveoV2:FullSearch>
</aura:component>

Where you replace <MY_SEARCH_HUB> by the name of the search hub used for the Coveo Insight Panel Lightning Component.

Recommended Articles