--- title: Rule Set Editor boosting and filtering rules reference slug: '2471' canonical_url: https://docs.coveo.com/en/2471/ collection: coveo-for-sitecore-v5 source_format: adoc --- # Rule Set Editor boosting and filtering rules reference > **Legacy feature** > > This article pertains to achieving relevance with the Coveo Hive framework. > Coveo Hive is now in maintenance mode. > > See [Achieve relevance](https://docs.coveo.com/en/n9qd0318/) for guidance on leveraging [Coveo Platform](https://docs.coveo.com/en/186/) relevance features with the Coveo Atomic library. > **Important** > > [.version.c4sc.c4sc-edition.enterprise] > [Enterprise edition^,role=version-tag](https://www.coveo.com/en/pricing/sitecore) > > > This page only applies to Coveo for Sitecore Enterprise users. > > To learn how to implement boosting or filtering rules, see [Apply Filtering and Ranking Rules](https://docs.coveo.com/en/2300/). This page explains the different available rules of the **Rule Set Editor**. Rules are applied according to 3 conditions: * Coveo Fields * Items Properties * Enabled xDB ![Animated gif scrolling down the Create rule window to reach the Coveo xDB/DMS rules | Coveo](https://docs.coveo.com/en/assets/images/c4sc-v5/rule-set-editor-choose-conditions.gif) ## Coveo fields These are rules that can be applied according to item fields. * `where specific field compares to specific value` This rule can be used to boost or filter items that have the value specified in the specific field. You should use this rule for `string` fields. * `where specific field is between specific date and specific date` This rule can be used to boost or filter items with a specific `date` field value between the two specified dates. * `where specific field is between specific numerical value and specific numerical value` This rule can be used to boost or filter items that have a `numerical` field value between the two specified values. * `where specific field compares to specific date` This rule can be used to boost or filter items that have the value specified in the specific field. You should use this rule for `date` fields. * `where specific field compares to specific numerical value` This rule can be used to boost or filter items that have the value specified in the specific field. You should use this rule for `numerical` fields. ## Coveo items These are rules that can be applied according to item properties. * `where the item ID compares to value` This rule can be used to boost or filter items according to a specific ID. The specified ID should be in this format: `+{391FCAAB-8BB5-48C2-8AC8-9C96C6F19225}+`. * `where the item is the specific item` This rule can be used to filter or boost a specific item, ignoring its tree. * `where the item is the specific item or one of its subitems` This rule can be used to filter or boost items that are included in the specified tree of items. The specified item will be considered as the top tree, in an inclusive manner. * `where the item has layout` This rule can be used to filter or boost items that have a layout or not. * `where the item template is specific template` This rule can be used to filter or boost items that are made from the specified template. * `where the item template is or inherits from specific template` This rule can be used to filter out or boost items based on the specified template or whose template inherits from the specified template. This rule doesn't support many inheritance levels. * `where the item is a child of the specific item` This rule can be used to filter or boost items that are included in the specified tree of items. The specified item will be considered as the top tree, in an exclusive manner. * `where the item is the first-level child of the specific item` This rule can be used to filter or boost items that are direct descendants of the specified item. ## Coveo xDB > **Important** > > Coveo xDB rules are only visible when the Sitecore xDB is enabled. These are rules that apply only when the xDB is enabled. They're related to the profile and pattern cards. * `where the item profile card is specific profile card` This rule boosts or filters items that have the selected profile card assigned. You should use this rule if you only want Business items, for example. * `where the item specific profile key compares to specific numerical value` This rule boosts or filters items that have the selected profile key value. You should use this rule if you want the items that have more than five of the [business keys](https://en.wikipedia.org/wiki/Natural_key), for example. * `where the item profile card is specific profile card and the current visit matches the specific pattern card in the specific profile` This rule creates a manual match between the pattern cards and the profile cards. For example, use this rule to boost the items with the Business profile cards, when the recognized pattern is `Bob the Business Traveler`.