Coveo Hive Search Page Structure

Warning
Legacy feature

This article pertains to the Coveo Hive framework which is now in maintenance mode.

Choose one of Coveo’s more modern, lightweight, and responsive libraries for any future search interface development. See the search interface Implementation guide for more details.

The Coveo Hive framework contains a large amount of placeholder settings, providing a basic hierarchy to the Hive components. Most components, especially section-type components, give access to more specific placeholders, allowing you to add sub-components. This way, you can easily build a search page from scratch without getting overwhelmed by the large amount of out-of-the box components.

The following guide covers the main placeholders that define the default hierarchy. However, you can at all time add a Coveo Hive component to your own placeholders, or extend the Coveo Hive placeholders.

Keep in mind that extending a Coveo Hive placeholder directly isn’t recommended, as it can break future upgrades. Hence we recommend to use the Placeholder Extender (see Insert Custom Components in an Existing Search Interface - Patching the Allowed Controls of an Existing Placeholder).

About Sections

Sections are renderings that will insert new placeholders on the page. They usually have no other function than to define the hierarchy of the Coveo Hive components.

Important

Most section-type components have been removed in the Coveo for Sitecore Experience Accelerator (SXA) library of components, the reason being that SXA provides numerous containers of its own, allowing you to manage your specific hierarchy of components.

The Base Placeholders

The two placeholder settings at the top of the Coveo Hive hierarchy are the Coveo UI and UI Resources placeholders.

baseplaceholders

Coveo UI

This placeholder lets you add a variety of components. While the majority of these components are visual components which the end user interacts with (and that appear in the red section placeholders in the diagram below), there are also some components that are invisible to the end user but still influence the page behavior.

Coveo UI placeholder content | Coveo for Sitecore 5

UI Resources

This placeholder holds the common scripts that are required to make all the other components work together.

Adding Resources and Search Interface

37102989

The search interface provides two things.

  • a set of common components that are used in almost any search interface. The options for these components are modified through the Coveo Search Interface component itself.

  • the UI Content placeholder.

UI Content

This placeholder allows you to add frame components that better define how the visual components are organized in the page. The available frames are:

  • Default Frame

  • Modular Frame

  • Modular Frame: 3 columns

The Default Frame component doesn’t contain any sections, which makes it the easier to understand but the less flexible.

Example of a Page Structure with the Default Frame

Since the Default Frame component is the one with the most constant hierarchy, we’ll use it as an example.

When you add the Default Frame, you get a page with the following placeholders:

  • Searchbox Settings

  • Searchbox

  • Searchbox Options

  • UI Header

  • Facets

  • Tabs

  • Results Summary Section

  • Result Layout

  • Sorts

  • UI Results Header

  • Results List

  • UI Results Footer

  • UI Footer

These placeholders are meant to house the following components:

37102990

Searchbox Settings

This placeholder allows you to add the Searchbox Settings component. This is the ellipsis button that appears next to the searchbox, activating some additional searchbox features. Those features depend on the components added to the Searchbox Options placeholder.

Important

The Searchbox Options placeholder only appears when a Searchbox Settings component is added to the Searchbox Settings placeholder.

Searchbox Options

This placeholder allows you to add optional search box features such as:

  • Advanced Search

  • Preferences Panel

  • Share Query

  • Export to Excel

This placeholder is used to insert the Searchbox component.

UI Header

This placeholder allows you to add a variety of components that aren’t visible to the users such as additional resources, query filters, or external content. It also allows visual components like pagers, query statistics, and others to be placed.

Facets

This placeholder allows you to add a variety of facet components such as slider and range facets. A distance facet is also available. The facets allow the end user to easily refine the search results with his own criteria.

Tabs

This placeholder allows you to add the Tab component. The tab is useful when you want to present different groups of content in a single search page. For example, you could have a tab that shows people results and another showing products.

Results Summary Section

This placeholder allows you to display information on the current query. It allows you to add the following components:

  • Query Summary

  • Query Duration

Result Layout

This placeholder allows you to add components allowing the user to select which layout to use to display the search results. For example, the user could view the search results either as a list or as cards. It allows you to add the Result Layout component.

Sorts

This placeholder allows to add various sort components to sort results by:

  • Relevancy

  • Date

  • Field

  • Distance

UI Results Header

This placeholder allows you to add various components displaying information about the current query and results such as:

  • Breadcrumb

  • Did you mean

  • Query execution time

  • Number of results

Results List

This placeholder allows you to add result lists to the page. Usually, a search page will have only one result list. However, you might want different representations of the same results, for example to be able to view results as list or as cards. In this case, you will include many result lists component and assign a specific result templates to each one.

Adding a result list also brings the Result Templates placeholder. It then allows you to add various result templates to link them to the current result list component.

This placeholder allows you to add various components. Most of the time, it’s used to put the Pager and Results Per Page components.

This placeholder allows you to add a variety of components. In the available frames, this placeholder adjusts to the width of the search interface.