Skip to main content

Guide · 6 min read

Document indexing and metadata, explained properly

Document indexing attaches structured values to a scanned file so it can be retrieved by something other than luck. Index fields are the values themselves, full-text search covers the OCR'd body text, and the metadata schema is the rulebook defining which fields exist and what may go in them. Indexing depth, not scanning quality, usually decides whether an archive is usable.

Last reviewed

An organisation finishes a scanning project, opens the delivered archive, and cannot find the lease it needs. The images are excellent. Every page is crisp, straight and searchable. The problem is that four thousand documents were indexed by box number and date of scanning, and nobody knows which box the lease was in. Capture was never the weak point.

Three things, often confused

Index fields

Structured values attached to a document as a whole: invoice number, supplier, contract reference, employee ID, date of issue, document type. They are typed, selected from a list, or extracted and verified. Each one is a deliberate decision to spend effort so that a future search is fast and exact. Index fields support filtering, sorting, range queries, deduplication and retention rules. Full-text search cannot do any of those reliably.

Full text

Everything OCR read from the page, stored as searchable body content. It is cheap to produce and covers words nobody thought to index. It is also noisy: it will match a supplier name that appears once in a footer, and it inherits every OCR error on a degraded page. Full text finds documents you did not anticipate needing. It is a poor foundation for anything that must be exact.

The metadata schema

The definition rather than the data: which fields exist for each document type, which are mandatory, what data type each holds, what format a date takes, whether a value comes from a controlled list, and how documents relate to one another. The schema is written once, before indexing starts, and it is the artefact that most projects skip. Skipping it is why archives end up with dates in four formats and a supplier spelled three ways.

Indexing depth decides what is findable

Depth is the single biggest cost variable in most digitization projects, and it scales with fields per document rather than with pages. Choosing it is a business decision about retrieval, not a technical one.

Indexing depth: what each level costs you and what it lets you find
LevelWhat is capturedWhat you can retrieveFails when
Box or batch levelOne record per physical containerThe container. A human then searches inside itAnyone needs a specific document without knowing where it lived
File or folder levelOne record per file: file name, reference, date rangeThe file, then a manual scan of its contentsFiles are thick, or a document belongs in two files
Document levelOne record per logical document, with a defined field set per document typeThe exact document, by any indexed field, with filters and sortingDocument boundaries inside a batch were never defined
Document level plus full textThe above, plus all OCR'd body contentThe document by field, and any phrase inside itOriginals are handwritten or degraded enough that OCR is unreliable
Field extractionSpecific values pulled from the page: totals, dates, parties, reference numbersReporting, reconciliation and automated workflow, not just retrievalLayouts vary widely and there is no verification step

A common and sensible pattern is to mix levels within one project. Index the active, frequently-retrieved series at document level with a full field set, and the dormant series at file level with full text. Uniform depth across a whole archive usually means somebody either overspent on dead records or underspent on live ones.

Designing fields people will actually use

  1. Watch how retrieval happens now. Sit with the people who currently pull files and note what they say out loud when they look for something. Those phrases are your field list. A schema designed in a meeting reflects how the organisation describes itself, not how it searches.
  2. Separate identity fields from descriptive ones. Identity fields, such as a contract number or an employee ID, must be exact, validated and unique. Descriptive fields, such as a subject or a category, can tolerate looser values because nothing depends on them being unique.
  3. Use a controlled list wherever a field has fewer than a few dozen legitimate values. Free text for document type produces Invoice, INV, invoice and Tax Invoice in the same column within a week.
  4. Store dates in one machine-readable format, and store what was printed on the page separately if the printed form matters. Never let an indexer decide how to interpret an ambiguous numeric date. Define the rule in the schema.
  5. Define the document boundary rule before anything is scanned. What makes one document end and the next begin: a separator sheet, a header, a change of reference number. Boundary errors are the hardest defect to fix after delivery because they corrupt every field on both documents.
  6. Decide how versions and duplicates behave. If the same contract exists in three departments' files, is it one indexed document with three locations, or three documents? Either answer works. No answer produces a mess.
  7. Keep provenance. Record the source container, the capture date and the batch. When an anomaly surfaces two years later, provenance is what lets you trace it back to a physical shelf.

Verifying that the index is right

Index accuracy is measured at field level, on a random sample, by someone re-keying blind and comparing. Document-level accuracy is a misleading measure: a document with one wrong field out of ten is not ninety per cent useful, because the one wrong field may be the only one anyone searches by.

Three mechanisms are worth specifying, and they layer.

  • Validation at entry. Format masks on reference numbers, date ranges that reject impossible values, and mandatory-field rules stop a large share of errors before they are ever stored.
  • Double-key entry on critical fields. Two operators key the same value independently and the system flags disagreements for adjudication. Expensive, so reserve it for the fields that carry the retrieval weight.
  • Sampled audit on delivered batches, with a defined lot size, sample size and acceptance rule, and rework of the whole lot when a batch fails. Patching only the found defects leaves the same error rate in the pages nobody sampled.

Ask for the audit results per batch as part of delivery. An index accuracy figure quoted without a stated measurement method, sample size and field list is not a figure at all.

Frequently asked questions

What is the difference between indexing and OCR?

OCR converts the picture of a page into machine-readable characters, producing searchable body text. Indexing attaches structured values to the document as a whole, such as a contract number, party name or date. OCR is automatic and covers everything on the page. Indexing is selective, verified, and is what makes filtering, sorting and retention rules possible.

How many index fields should a scanned document have?

Enough to satisfy the way documents are actually requested, which is usually between three and eight per document type. Every extra field adds cost on every document and adds a place for an error. Start from real retrieval requests rather than from a wish list, and keep fields that nobody has ever searched by out of the schema.

Is full-text search enough on its own?

Rarely. Full text finds phrases you did not anticipate, which is genuinely useful, but it cannot filter by date range, enforce uniqueness, drive a retention rule or sort a result list meaningfully. It also inherits every OCR error on degraded pages. Treat it as a complement to index fields, not a replacement for them.

Can index fields be extracted automatically instead of typed?

Often, yes. Structured documents with predictable content, such as invoices or application forms, extract well, and modern classification handles varied layouts far better than fixed templates did. Extraction still needs a verification step: confidence scores route uncertain values to a human queue. Automated extraction reduces keying effort rather than removing the review stage.

What happens if we need to change the index schema mid-project?

Everything already indexed has to be revisited if the new field cannot be derived from existing data or from the OCR text. That is a re-indexing exercise priced per document, and on a large programme it can rival the original indexing cost. This is why the schema should be tested against real retrieval requests before production starts.

About this article

Written and reviewed by the digitization delivery team at Document Digitization Services, the specialist division of Athena Global Technologies LLC. Content is reviewed against how projects are actually run, and updated when that changes.

Tell us what is in your archive.

Send us your page or box estimate and we will come back with a scoped approach, a security plan and a written quotation.

Or call +971 55 430 1681

CallWhatsAppGet Quote