Coveo Smart Snippet

Implements the Coveo JavaScript Search Framework SmartSnippet component which displays the excerpt of a document that’s the most likely answer to the user query.

Usage Notes

Insertion Location

The Coveo Smart Snippet rendering is an Allowed Control in the following placeholder(s): UI Results Header, Results Header

Example insertion sequence for the Coveo Smart Snippet rendering.

Coveo for Sitecore SXA rendering insertion locations aren’t limited by placeholder Allowed Controls. The Coveo Smart Snippet rendering may therefore be inserted throughout the partial design, whether in Coveo for Sitecore or Sitecore placeholders.

Example insertion sequence for the Coveo Smart Snippet rendering.

Data Source Options

Option name Description
Href Template See hrefTemplate component option
Maximum Snippet Height See maximumSnippetHeight component option
Title Field See titleField component option
Use IFrame See useIFrame component option

Additional data attributes

Allows use of the Coveo JavaScript Search Framework SmartSnippet component options that aren’t directly available in the data source.

Sample Generated HTML and Corresponding Visual Output

<div class="CoveoSmartSnippet"></div>
Smart snippet example
What's Next for Me?