Build search

With the index built and healthy, you can now start building your search solution and test it out, as you go, with data drawn from your index.

Coveo for Sitecore packages include the Coveo for Sitecore Hive Framework renderings. The Coveo for Sitecore Hive Framework was developed to let you design and configure your search interfaces directly in the Sitecore Experience Editor, making for an integrated, codeless, and convenient user experience. It has been the traditional approach to creating Coveo-powered search solutions in Sitecore for years.

The Coveo for Sitecore Hive Framework

Important
Alternatives to the Coveo for Sitecore Hive framework

The Coveo for Sitecore Hive Framework is based on the Coveo JavaScript Search Framework which is now in maintenance mode. We strongly encourage Coveo for Sitecore customers to consider Coveo’s more modern, lightweight, and responsive libraries for any future search interface development. See our search interface Implementation guide for more details.

Sitecore XM Cloud and on-premises headless Sitecore users should select an option from the Choose the right approach article rather than the Coveo for Sitecore Hive Framework.

Most Coveo for Sitecore Hive Framework renderings simply encapsulate Coveo JavaScript Search Framework components as Sitecore MVC presentation items. The remaining Coveo for Sitecore Hive Framework renderings leverage Sitecore-specific functionalities. Coveo for Sitecore Hive Framework renderings are search interface building blocks. Use these renderings to assemble your search interfaces in the Sitecore Experience Editor.

Creating your search solution

Having gained a clearer understanding of the Coveo for Sitecore Hive Framework, you will be eager to start putting together a Coveo-powered search page. The Create the search solution section will help you choose the main search page creation option that’s best for you. Based on your decision, the documentation will provide a path towards a basic, but complete and functional search solution.

Important

Many powerful Coveo features (e.g., analytics reporting and machine learning driven features) rely on search hub values. Meaningful search hub values are also essential in identifying the origin of all calls to the Coveo Search API, as this can avoid you accidental extra costs.

Regardless of the way you build your search interfaces (or the other methods you may use to call the Search API), ensure you set search hub values properly from the beginning.

The improvements you can subsequently make to your basic search interface are nearly limitless, whether in the user interface functionalities, in the quality of the results or in the way these results are presented.

Retrieving results

At this point, you have a basic, functional search interface with all the necessary components, including everything required to start tracking analytics. You should now refer to the Retrieve results section of the documentation. This section includes information on how to alter your queries using Query Pipelines or your search results before they’re displayed using the REST Endpoint pipelines. You need to be able to index content outside of your Sitecore website(s) and have it displayed in your Coveo for Sitecore search interface? The way to achieve this may be found in this section.

Query performance best practices

Waiting upon a search interface to return results is unappealing, so when index size and query rate increase, query performance becomes a prime concern. The Coveo for Sitecore query performance best practices section lists dos and don’ts that contract, or lengthen, query times.

Improving the experience

The Improve the experience section of the documentation contains information on lesser-known components that are sure to come in handy in very specific use cases. Additionally, this section describes how you can leverage the Coveo JavaScript Search Framework to the fullest extent, even when you think a Coveo for Sitecore Hive component can’t fulfill a given purpose. Instructions on how to use Sitecore personalization with Coveo are also available.

Styling the experience

The Style the experience section of the documentation details how you can configure the search interface on a per-tab basis. Displaying search results of different types of Sitecore items the same way makes no sense. Two articles on result templates explain how you can set up condition-based search result contents. Finally, this section guides you in ensuring the search experience you provide your users is consistent with the look and feel of the rest of your site.