Document Identity and Versioning
In this article
- Keep apart which document an item is, which version of it, where one copy of it sits and whether two contents are equal.
- Decide whether a new item is a new version, an alias of the same document or a different document, and which version is current.
- Read a lineage record and name the derived artifacts to rebuild when the source or the parser changes.
- Terms defined here: document identity, content hash, near-duplicate document, data lineage.
Overview
Brightline, a home-internet provider, runs a support assistant on its website. Its help pages, router manuals, staff handbook and past conversations are ingested into canonical documents the search index can take. The company, its pages and every value here are made up.
Look inside the index and two things are odd. Two refund pages disagree: help-refunds says a customer can ask for a refund within 14 days, help-refunds-2023 says 30. And the router manual manual-bl-r7 appears twice, once from the file store and once from the partner support portal. Nothing in the index says whether these are one document or several. So the assistant may quote the old 30-day window, or cite the same manual twice as if two sources agreed.
"Is this the same document?" hides four separate questions. Give each one its own field, record how every block was made, and both problems have clear answers.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Four questions, four fields
- Two refund pages: one document, two versions
- One manual in two places: an alias
- Similar is not the same
- Lineage: from source version to blocks
- Common mistakes
- Sources
- Check yourself, 13 questions