SEARCH & AI / 011

Metadata Strategy for Vector Search

An architecture note on the metadata needed to filter, cite, refresh and permission-check indexed AEM content in a vector-search system.

SHARE
LinkedIn X Facebook Threads

Topic map

Identity survives transformation

AEM metadata strategy for vector search

  1. 01Source
  2. 02Revision
  3. 03Chunk
  4. 04Policy
  5. 05Citation

SYSTEM OVERVIEW

SYSTEM / FLOW

Metadata is carried through every transformation.

The contract is application-defined. AEM paths and access labels are not automatically public citation targets or authorization decisions.

CONTENT PROJECTIONAEM sourceidentityNormalizedrevisionChunk identityIndexed recordCONTROL PROJECTIONTrusted policyPublication stateLocale + modelversionRetrieval filtersCOMBINED PATHAuthorizedevidenceResolvablecitation

Content projection

  1. AEM source identity
  2. Normalized revision
  3. Chunk identity
  4. Indexed record

Control projection

  1. Trusted policy
  2. Publication state
  3. Locale + model version
  4. Retrieval filters

Combined path

  1. Authorized evidence
  2. Resolvable citation

THIS ARTICLE EXPLORES

  1. Separate identity, revision and storage keys.
  2. Decide which metadata is filterable or public.
  3. Validate updates and deletions with a source manifest.

01 / PROBLEM

A vector without provenance is difficult to correct.

If the only identifier is a generated storage ID, a publisher cannot reliably withdraw all chunks of a source. Define source-level identity before choosing the vector schema.

02 / METADATA

Classify fields by their use.

Use only metadata needed for retrieval and operations. Keep internal locators out of public responses unless explicitly appropriate. A policy label must be resolved against the current caller, not trusted as a grant by itself.

Contract worksheet
Field familyExampleUse / exposure
IdentitysourceId, chunkIdReconciliation; expose only safe stable identifiers.
RevisioncontentVersion, embeddingVersionCompatibility checks; diagnostic metadata.
Scopelocale, accessScope, publicationStateFiltering and authorization inputs.
CitationPublic application URL + titleAllowed end-user provenance.
Internal locatoraemPathPrivate diagnosis; not necessarily a valid citation.

03 / IMPLEMENTATION

Reject incomplete records before indexing.

Treat required metadata as a write-time gate. Missing access information should not default to public. Store a strategy version so a schema or chunking migration can rebuild records deliberately.

Illustrative validation contract

JSON
{
  "required": [
    "sourceId",
    "chunkId",
    "contentVersion",
    "locale",
    "publicationState",
    "accessScope",
    "embeddingVersion"
  ],
  "publicationState": {
    "allowed": [
      "published",
      "withdrawn"
    ]
  },
  "missingAccessPolicy": "reject",
  "citationTarget": "resolve through an authorized application route"
}

04 / INGESTION

Use metadata to reconcile, not only to filter.

Compare the expected source manifest with indexed records. Revision checks and tombstones can prevent a delayed retry from resurrecting deleted content. A successful upsert does not remove old chunks.

Revision replacement

Validate store-specific atomicity and visibility semantics.

  1. 01Read authoritative revision
  2. 02Generate manifest
  3. 03Write replacement
  4. 04Switch visible revision
  5. 05Remove obsolete IDs

05 / EVALUATION

Test the negative paths.

Use denied identities, locale mismatches, expired policy information and withdrawn sources. Inspect model payloads and answer caches as well as search responses.

Metadata acceptance tests

  • Missing access scope rejects the record.
  • Old embedding versions cannot silently mix with incompatible queries.
  • Unpublish removes every chunk for the source.
  • Citations resolve only through an allowed route.
  • Diagnostics do not leak source text.

REFERENCE DESK

Sources & further verification

Product behavior should be checked against the target AEM and search-engine release. The design choices in this note are proposed assessment criteria, not vendor guarantees.

SHARE THIS NOTE

Found this useful? Share it with someone working on AEM, platform engineering or search.

SHARE
LinkedIn X Facebook Threads

CONTINUE THE THREAD

Related engineering notes

Related engineering work