--- title: Query Ranking slug: '3039' canonical_url: https://docs.coveo.com/en/3039/ collection: coveo-for-sitecore-v5 source_format: adoc --- # Query Ranking > **Legacy feature** > > The Coveo Hive Framework is now in maintenance mode and is no longer recommended for new implementations. > > To build new search experiences, use one of Coveo's more modern, lightweight, and responsive libraries. > To get started, see the [Build search](https://docs.coveo.com/en/2473/) article. ![Coveo for Sitecore Specific Rendering](c4sc-v5/sitecore-20-px-new.png) Implements the **CoveoForSitecoreRankingExpression** component which represents a [query ranking expression (QRE)](https://docs.coveo.com/en/1472/) created from rules defined in the Sitecore Rules Editor. This query ranking expression is added to the [advanced query expression (`aq`)](https://docs.coveo.com/en/175/) on calls to the Search API to modify the item ranking `score` value. ## Usage notes * The Sitecore Rules Editor is only available with the Enterprise Edition. The Sitecore Rules Editor is required to set `Boost expression rules` in the data source. * The **{doctitle}** rendering is added automatically with the **Coveo Search Interface** rendering and **Coveo Tab** renderings. * Insert the **Coveo Relevancy Sort** rendering and select this sorting criterion for your result list to obtain document `score` values. Otherwise, `score` values will be zero on all result items. * Boosting is cumulative. When you specify boosting rules on the **Coveo Search Interface** and on the active **Coveo Tab**, items matching both rules are boosted by the sum of both `modifier` numbers. ## Insertion location

Coveo Hive

The Query Ranking rendering is an Allowed Control in the following placeholder(s): Coveo UI, Recommendations Components, Searchbox Components

Example insertion sequence for the Query Ranking rendering.

Coveo Hive SXA

The Coveo for Sitecore SXA Query Ranking rendering is meant to be inserted in specific placeholders (that is, Coveo UI, Recommendations Components, Searchbox Components).

Example insertion sequence for the Query Ranking rendering.
## Data source options The following table lists the available data source options for this rendering. [%header,cols="33%,66%"] |=== |Option name |Description a|{empty} -- [.version.no-link.c4sc.c4sc-edition.enterprise] Enterprise edition -- Boost expression rules |List of condition-action rules created in the Sitecore Rules Editor. The Coveo Boosting `number` is used as the QRE `modifier` value, which is correlated to the item ranking `score` by a 1 to 10 ratio. |=== ## Sample Generated HTML and Corresponding Result To boost the `score` of commerce items currently on sale by 1000 points, you define the following query ranking rule with a `number` value of 100 (as per the `modifier`-`score` 1 to 10 ratio) in the **Coveo Search Interface** data source: ![Query Ranking Rule Example | Coveo for Sitecore 5](https://docs.coveo.com/en/assets/images/c4sc-v5/query-ranking-rule-example.png) **Generated HTML:** ```html
``` **Search API call `aq`:** ![QRE sample aq](https://docs.coveo.com/en/assets/images/c4sc-v5/query-ranking-rule-example-aq.png) **Matching document `score`:**
Screenshot of Coveo Search API JSON response showing Samsung X5 item with score 6149 before applying query ranking rule
Search API call response for an item before adding query ranking rule
Screenshot of Coveo Search API response showing Samsung X5 item with score 7149 after applying query ranking rule
Search API call response for the same item after adding query ranking rule