TL;DR
- Task: Merge two or more entities that represent the same real-world thing (for example, the same location, service, or organization) into one canonical entity.
- When to do it: You find the same thing more than once in Entity Hub, often because it appears with slightly different names or comes from different sources.
- What it accomplishes: The duplicates point to a single canonical entity, so the important entities in your Entity Hub stay accurate and easy to manage.
- After reading: You'll know how to choose the canonical entity, merge a duplicate into it, confirm the merge worked, and fix a merge that won't save.
Note: You can only merge entities into an optimized entity. The duplicates you merge in don't need to be optimized.TABLE OF CONTENTS
- Context, Required Knowledge, & Why This Article?
- How To: Merge Duplicate Entities
- How To: Fix a Merge That Won't Save
Context, Required Knowledge, & Why This Article?
Entity Hub finds the entities (people, places, organizations, services, and concepts) in your website content. Sometimes the same real-world thing shows up as more than one entity. For example, "Main Street Clinic" and "Main St. Clinic" could both be listed even though they're the same location. You can fix this by merging the duplicates in Entity Manager.
When you merge, you mark one entity as the duplicate of another. The entity it points to becomes the canonical entity: the main version of that thing. Other entities can be merged into a canonical entity, but a canonical entity can't be merged into anything else.
Problem & Objectives
Problem: Duplicate entities split one real-world thing across several records. It becomes unclear which one to review, add to topics, and track.
Objective: Merge the duplicates into one canonical entity and confirm that the merge saved.
Pre-Requisites
- Access to Entity Hub for the account.
- The duplicate entity and the entity you're merging it into are both Optimized.
- You know which entity should be the canonical entity (see Step 1).
Merge Rules
- Only optimized entities can be merged.
- An entity can't be merged with itself, and two entities can't be merged into each other.
- A canonical entity can't be merged into another entity. Other entities can still be merged into it.
How To: Merge Duplicate Entities
Every merge happens on the duplicate entity. You open the duplicate and point it to the canonical entity. To merge several duplicates into the same canonical entity, repeat these steps for each one.
Step 1 Choose the Canonical Entity
Decide which entity should be the main version. Good choices are usually the one with the most accurate name and details, or the one that's already part of your topics. If one of the entities already has a Canonical badge, merge the others into it.
Step 2 Open the Duplicate Entity
- Go to Entity Hub > Entity Manager.
- Find the duplicate entity and open it.
- Scroll to the Duplicate Entities section.
Step 3.A Add the Canonical Entity by Searching
- In the Exact Match field, start typing the canonical entity's name.
- Select it from Available Instances.
Search results only include optimized entities that can be merged into. Canonical entities that can't be merged and the entity you're editing don't appear in the list.
Step 3.B Add the Canonical Entity by Pasting its URI
If you already have the canonical entity's URI, paste it into the Exact Match field. Entity Hub applies the merge rules when it saves, so an invalid URI shows an error instead of saving (see How To: Fix a Merge That Won't Save).
Step 4 Confirm the Merge
- Check that the save status at the top of the page says All changes saved.
- Open the canonical entity and check that it has the Canonical badge.
Undo a merge: Open the duplicate entity and remove the canonical entity from its Exact Match field. If Entity Hub created the merge automatically, removing it is permanent. Entity Hub won't merge those entities again.
How To: Fix a Merge That Won't Save
When a merge breaks one of the merge rules, the save status at the top of the page shows an error. Find the message you're seeing below.
Couldn't save: canonical entities can't be merged into other entities.
The entity you're editing is already canonical, because other entities are merged into it. Merge the other entity into this one instead, or choose a different canonical entity.
Couldn't save: an entity can't be merged with itself.
You either added the entity's own URI, or the entity you added is already merged into the one you're editing. Check which entity should be canonical, then merge in only one direction.
Couldn't save: only optimized entities can be merged.
The entity you added isn't optimized. Optimize it first, then try the merge again.
The Exact Match field is greyed out
The entity you're editing isn't optimized. Optimize it, and the field becomes available.
Follow-Up: Once your duplicates are merged, add the canonical entity to the right topics. [Link to topics article]
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article