Query Pipeline Deployment Overview

You can define query pipelines in your Coveo Cloud organization when you have more than one search interface with distinct users and purposes, and want to apply different rules or models for each (see What’s a Query Pipeline? and Adding and Managing Query Pipelines).

This article describes the steps needed to create a query pipeline and configure a JavaScript Search interface to use this query pipeline.

Deploy a Query Pipeline

  1. Choose a query pipeline routing mechanism (see Query Pipeline Routing Mechanisms and Rules). Condition-based routing is recommended.

  2. In your Coveo Cloud organization, create a pipeline with specific rules for the desired search interface (see Adding and Managing Query Pipelines).

    You can duplicate an existing pipeline and make changes rather than starting from scratch.

  3. Depending on your chosen routing mechanism, implement your query pipeline as follows (see Query Pipeline Routing Mechanisms and Rules):

  4. Validate that the search interface now uses the new pipeline.

    Test a thesaurus entry that only exists in the new pipeline.

Add a Query Pipeline to a Coveo Cloud V2 Search Interface

Modify the JavaScript search interface using the Interface Editor:

  1. Access the Interface Editor for the desired search page (see Customize the Interface of a Search Page).

  2. In the Interface Editor, click UI Settings, and then Search Interface.

  3. In the Search Interface pane, on the Query Pipeline line, enter the name of the query pipeline that you created for this search interface.

  4. Save and publish your change.

In the Code View, the Interface Editor adds the data-pipeline="myPipelineName" to the element with CoveoSearchInterface class:

<div class="CoveoSearchInterface" data-pipeline="myPipelineName">
Recommended Articles