Building Search

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

To build your search interface, you will use the Coveo for Sitecore Hive Framework. Most Coveo for Sitecore Hive Framework components simply encapsulate Coveo JavaScript Search Framework components as Sitecore MVC presentation items. Think of Coveo for Sitecore Hive Framework components as the building blocks for your Sitecore search pages (see Coveo for Sitecore Hive Framework).

Setting up Your Search Interface

Having gained a clearer understanding of the Coveo for Sitecore Hive Framework, you will be eager to start putting together a Coveo search interface. Do not let the initial apparent complexity of the framework dampen your spirits. The Setting up the Interface documentation section provides all the resources you need to painlessly and rapidly attain a basic, but well-structured and functional search interface (see Setting up the Interface).

The improvements you can 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 are 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 Retrieving 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 cannot fulfill a given purpose. Instructions on how to use Sitecore personalization with Coveo are also available (see Improving 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 Styling the Experience).

Recommended Articles