Coveo Query Summary

Implements the Coveo JavaScript Search Framework QuerySummary component which indicates the currently displayed range of results (e.g., Results 1-10 of 123). The component can also be used to show a custom message and search tips when the current query has no matching items.

Insertion Location

The Coveo Query Summary rendering is an Allowed Control in the following placeholder(s): UI Header, UI Results Header, UI Results Footer, UI Footer, Results Summary Section

Example insertion sequence for the Coveo Query Summary rendering.

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

Example insertion sequence for the Coveo Query Summary rendering.

Data Source Options

Option name Description
Enable search tips See enableSearchTips component option
Only display search tips See onlyDisplaySearchTips component option
Display the Cancel Last Action link See enableCancelLastAction component option
Display the No Results Found message See enableNoResultsFoundMessage component option
The custom message to display when there are no search results See noResultsFoundMessage component option
Additional data attributes Allows use of the Coveo JavaScript Search Framework QuerySummary component options that aren't directly available in the data source.

Sample Generated HTML and Corresponding Visual Output

<span class="CoveoQuerySummary" data-no-results-found-message="Oops! No results."></span>

Sample output when query yields results

Query Summary with results example output

Sample output when query yields no results

Query Summary without results example output

Recommended Articles