How to show different match labels based on ruleset weight
This feature allows you to display match labels based on the weight assigned in a ruleset during data matching. For example, a product can show a specific match label when it meets the criteria of a ruleset with a weight of 1, and display a different label when it matches a ruleset with a weight of 2. This provides a flexible way to communicate different levels or types of matches directly in the product advice.
How to Activate Weight-Based Custom Match Labels
1. Navigate to Settings → Configure.
2. Enable the Custom Match Text switch.
- This will reveal the option Enable Weight-Based Custom Match Text.
3. Enable the switch for "weight-based custom match text"
Assigning Weights to Rules in Data Matching
Once the weight-based custom match text option is enabled, you can assign weights to individual rules within your data matching rulesets. The assigned weight determines which match label is displayed when a data item meets the criteria of a specific rule. For example, a rule with weight: 0.5 might trigger a “Low Match” label, while weight: 2 could trigger a “High Match” label. This allows for more granular control over the labels shown based on match importance.
- Navigate to Matching → Data Matching.
- Create a new rule – Add a new rule within the ruleset you want to configure.
- Assign a weight – Set the desired weight for the rule to control which match label will be displayed when this rule is met.
- Create a second ruleset for a different weight – Add a new ruleset and assign it a different weight to display an alternative match label when its criteria are met.
In the example above, you can see three rules, each assigned a different weight. The rule with weight 2 represents the highest match, weight 1 indicates a normal or average match, and weight 0.5 reflects a partial match that is relevant but not fully aligned.
Providing Custom Text for Match Labels
To define the text that should appear for each match label, go to Configure → Edit Answer. Under the Match Text section, you will see input fields for each available weight. Enter the desired label text for every weight to control what users will see based on the match level.
When viewing the preview, you can see how the different match labels are displayed based on their assigned weights, as shown in the example below.
Documentation