Filter and Boost Using Query Pipelines

This article provides instructions on how to create filtering and boosting rules in Query Pipelines.

You might well decide to create several Query Pipelines, based on your specific requirements. You can then decide upon the best Query Pipeline mapping strategy. For example, you might want to associate a search interface to a specific Query Pipeline or use a more dynamic, condition-based pipeline routing approach (see Route Search Queries to Query Pipelines).

Query Pipeline Filtering

  1. Create a Query Pipeline in the Coveo Administration Console (see Create a Query Pipeline). For now, don’t create a condition. Stop after step 4.

  2. In your query pipeline, add a filter (see Manage Filter Rules).

    Example

    To ensure only Sitecore items associated with a layout appear in the results list, the query expression would look like the following.

    QueryPipelineFilter
    Important

    Use the Coveo field name (also called the Translated Name), not the Sitecore field name, when creating query expressions (see About the Indexing - Fields).

  3. In the Experience Editor, on the Coveo Search Interface component floating toolbar, select the Edit the rendering’s data source option.

  4. In the Query Settings section, enter the name of your pipeline in the Query pipeline field.

Query Pipeline Boosting

There are several result boosting methods available in query pipelines. Boosting results based on a ranking expression is one of them (see Manage Ranking Expression Rules).

Example

You have a Sitecore website about world lakes. Your lake items contain a Depth field. When your visitors land on a page that describes a deep lake, you might like to promote other lake items with comparable depths.

QueryPipelineRankingExpression
Important

Use the Coveo field name (also called the Translated Name), not the Sitecore field name, when creating query expressions (see About the Indexing Manager - Fields).

What's next for me?