Skip to end of metadata
Go to start of metadata

The rules defined by Coveo offers a variety of ways to filter or boost your search results.

For specific information about Boosting and Filtering Rules for the Coveo Search Component, see Using Boosting or Filtering Rules on the Search Component Programmatically.

For specific information about Boosting and Filtering Rules for the Coveo Tab Component, see Using Boosting or Filtering Rules on the Tab Component Programmatically.

 

Icon

This screenshot was taken from Sitecore 8.2 integrated with the March 2017 release of Coveo for Sitecore.

Icon
Please note that the Coveo xDB/DMS rules are only visible when the Sitecore DMS/xDB is enabled.

 

Rules Explanation

Icon

If you use an operator that is different from equals, such as ends with or contains, make sure that the field you have chosen is of type Facet in the index. To learn more about how to configure fields, see FieldMap.

If you use this operator with a CES system field, you also need to manually configure the field as a facet in the index (see Adding a Facet Field).

Coveo Fields

Those are rules that can be applied according to item fields.

  1. 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.


  2. 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.


  3. 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.

  4. 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. 
  5. 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

Those are rules that can be applied according to item properties.

  1. where the item ID compares to specific 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}

  2. where the item is the specific item
    This rule can be used to filter or boost a specific item, ignoring its tree.
  3. 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.
  4. where the item has layout
    This rule can be used to filter or boost items that have a layout or not.
  5. where the item template is specific template
    This rule can be used to filter or boost items that are made from the specified template.
  6. 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 does not support multiple inheritance levels.

  7. Available since: June 2017 Release

    where the item distance field with the specific distance field name compares to specific numerical value
    This rule can be used to filter out or boost items based on the value of the distance field, which is calculated by the Coveo Distance Resources Component Properties.

  8. 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.

  9. 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/DMS

Those are rules that apply only when the xDB/DMS is enabled. They are related to the profile and pattern cards.

  1. 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.
  2. 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, for example.
  3. 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.'