Coveo Smart Snippet

Warning
Legacy feature

This article pertains to the Coveo Hive framework which is now in maintenance mode.

Choose one of Coveo’s more modern, lightweight, and responsive libraries for any future search interface development. See the search interface Implementation guide for more details.

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

Coveo Hive

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 Hive SXA

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 the hrefTemplate component option.

Maximum Snippet Height

See the maximumSnippetHeight component option.

Title Field

See the titleField component option.

Use IFrame

See the 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 | Coveo for Sitecore 5