Mapping Rules Hierarchy
We recommend that you have multiple mapping rules using different metadata to ensure your items are indexed with relevant values when your preferred metadata can’t be extracted.
When you do so, the following principles apply:
A rule is successful if at least one metadata is mapped correctly to an index field or if the rule contains text.
Rules only containing text (no metadata names) are always successful.
Once a rule is successful, the other rules (if any) are ignored.
If no rule succeeds, the index field is left empty.
Here is a set of mapping rules applied to the
author index field. These rules appear in the same order in the Coveo Cloud Administration Console, and will be applied starting from the top.
If the metadata
lastNamedoesn’t exist but
firstNamedoes, the rule is successful, meaning the field
authorwill contain the
firstNamemetadata values. In such case, the following rules are ignored.
If both metadata in the first rule don’t exist, the string contained in
usernamewill fill the field.
If none of the above metadata exist, then the string
Anonymouswill be the only value of the
The rule will never apply in any circumstances since the third rule only contains text.