Coveo Did You Mean

Implements the Coveo JavaScript Search Framework DidYouMean component which suggests a query correction or triggers a new query with the suggested term (see About the Query Correction Feature).

Usage Notes

  • When EnableAutoCorrection is selected, every time a query yields no result and Coveo Cloud finds a query correction, a second call to the Search API is automatically triggered.

  • Coveo Cloud provides query corrections under certain conditions (see Limitations).

Insertion Location

The Coveo Did You Mean rendering is an Allowed Control in the following placeholder(s): UI Header, UI Results Header, UI Results Footer, UI Footer, Results Header

Example insertion sequence for the Coveo Did You Mean rendering.

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

Example insertion sequence for the Coveo Did You Mean rendering.

Data Source Options

Option name Description
Enable auto correction See enableAutoCorrection component option
Additional data attributes Allows use of the Coveo JavaScript Search Framework DidYouMean component options that aren't directly available in the data source.

Sample Generated HTML and Corresponding Visual Output

<div class="CoveoDidYouMean" data-enable-auto-correction="true" aria-hidden="false"
style="display: block;"></div>

Query Correction Feature example output

What's Next for Me?