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.

Tip
Other Coveo Search Interface Building Approaches

Coveo has recently developed more lightweight and responsive libraries you should also consider to create your search solution (see Choose the Right Approach).

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.

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 (see Coveo for Sitecore Hive Framework).

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 documentation 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 (see Create the 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 Retrieving 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 (see Retrieve Results).

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. Coveo for Sitecore documentation lists dos and don’ts that contract, or lengthen, query times (see Coveo for Sitecore Query Performance Best Practices).

Improving the Experience

The Improving 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 (see Improve the Experience).

Styling the Experience

The Styling 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 (see Style the Experience).

What's next for me?