Manage Query Pipelines

You can use the Query Pipelines (platform-eu | platform-au) page in the Administration Console navigation menu to manage the thesaurus, result ranking, featured result, stop word, ranking expression, ranking weight, and trigger rules as well as Coveo Machine Learning (Coveo ML) models of a Coveo organization (see What’s a Query Pipeline?). This allows you to optimize search results relevance and search experience in general.

Create a Query Pipeline

  1. On the Query Pipelines (platform-eu | platform-au) page, click Add Pipeline.

  2. In the Add a Query Pipeline panel that opens, select the Configuration tab.

  3. In the first box, enter a name for the query pipeline.

    This name appears as the title of your pipeline page and can be used to enforce the pipeline in the search token or in the search interface (see Query Pipeline Routing Mechanisms and Rules).

  4. In the Description box, optionally enter a description for the query pipeline to help Administration Console users understand its purpose.

  5. In the Use case drop-down menu, you can optionally select a use case for your query pipeline.

  6. Under Condition, select or create an appropriate query pipeline condition to apply.

  7. In the Interface URL section, you can optionally define the URLs of the search interfaces that use this query pipeline.

  8. In the Access tab, use the Access level drop-down menus to determine whether each group in your organization can view or edit your query pipeline.

    Note

    Groups for which there’s no drop-down menu in the Access Level column are either groups that can edit all query pipelines created in the organization or groups that aren’t allowed to see query pipelines at all (see Resource Access and Query Pipelines Domain).

    Since these groups' access level for any new query pipeline is already determined, you have no decision to make regarding them in the Access tab.

  9. Click Add Pipeline.

Manage Query Pipelines

On the Query Pipelines (platform-eu | platform-au) page, you can:

Test a Query Pipeline in the Content Browser

Click the query pipeline that you want to test, and then click More > Open in content browser in the Action bar.

On the Content Browser (platform-eu | platform-au) page, you can perform queries to validate the behavior of this specific pipeline.

Export and Import Query Pipeline Rules and/or Models

Set a Query Pipeline as the Default One

Click the query pipeline that you want to set as the default one, and then click More > Set as default in the Action bar.

The Default tag appears in the Info column for this pipeline.

The default query pipeline is used when the condition of no other pipeline matches the query (see Query Pipeline Routing Mechanisms and Rules).

Note

There’s always one and only one pipeline configured as the default pipeline identified with the Default tag. You can’t remove the default pipeline without first setting another pipeline as the default pipeline.

Important

Make sure that no condition is set on the default pipeline.

Edit the Condition on a Query Pipeline

  1. On the Query Pipelines (platform-eu | platform-au) page, click the desired query pipeline, and then click Edit components in the Action bar.

  2. On the page that opens, select the Overview tab.

  3. Under Condition, click X next to the condition to remove the current condition.

  4. Optionally, select or create a condition to replace the one you removed.

  5. Click Save.

Rename a Query Pipeline

  1. On the Query Pipelines (platform-eu | platform-au) page, click the desired query pipeline, and then click Edit components in the Action bar.

  2. On the page that opens, select the Overview tab.

  3. Under Pipeline name, you can change the query pipeline name.

  4. Click Save.

Note

If you want to rename a query pipeline used in production, you should do so by following the pipeline testing procedure. That’s because you need to update all references to the old query pipeline name, lest you break your search solution. For example, if you set the pipeline name in search tokens, you will need to update it and test that everything works as desired.

Duplicate a Query Pipeline

Notes
  • The condition on the original pipeline isn’t included in the duplicated pipeline.

  • You can use the duplicate of a pipeline as a starting point for your A/B tests (see Manage A/B Tests).

  1. On the Query Pipelines (platform-eu | platform-au) page, click the query pipeline that you want to copy, and then click Duplicate in the Action bar.

    On the Pipelines page, a copy of the pipeline is created.

  2. Edit the duplicated pipeline to give it a more meaningful name (see Rename a query pipeline).

Delete a Query Pipeline

  1. On the Query Pipelines (platform-eu | platform-au) page, click the query pipeline that you want to remove, and then click Delete in the Action bar.

  2. In the confirmation prompt that appears, click Delete.

Notes
  • You can’t delete the default query pipeline.

  • If you inadvertently delete a query pipeline, contact Coveo Support to retrieve the query pipeline rules.

Manage Query Pipeline Components

  1. On the Query Pipelines (platform-eu | platform-au) page, click the desired query pipeline, and then click Edit components in the Action bar.

  2. On any pipeline page, you can add and manage query pipeline:

Deploy a Query Pipeline

You can define query pipelines in your Coveo organization when you have more than one search interface with distinct users and purposes, and you want to apply different rules or models for each search interface.

  1. Choose a query pipeline routing mechanism. We recommend that you use condition-based routing.

  2. In your Coveo organization, create a query pipeline with specific rules for the desired search interface.

    Tip
    Leading practice

    You can duplicate an existing query pipeline and make changes instead of creating a new one.

  3. Add a condition for the pipeline to be used when a query comes from your search interface.

    Example

    Search Hub is External Search.

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

    Example

    Test a query pipeline rule that only exists in the new query pipeline.

Required Privileges

The following table indicates the privileges required to view or edit elements of the Query Pipelines (platform-eu | platform-au) page (see Manage Privileges and Privilege Reference).

Action Service - Domain Required access level

View query pipelines

Organization - Organization
Search - Query pipelines

View

Add, edit, and delete query pipelines

Organization - Organization

View

Search - Query pipelines

Edit

Note

The ability to create query pipelines can be granted independently from the Edit all access level (see Can Create Ability Dependence). You can therefore grant a group or an API key the View all or Custom access level for query pipelines and check the Can Create check box to allow users to create query pipelines.

The privileges required to view or edit query pipeline rules differ depending on the type of rule you want to manage.

Refer to the following links to learn more about the privileges required to view or edit a given type of rule: