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.
Topic map
Identity survives transformation
AEM metadata strategy for vector search
- 01Source
- 02Revision
- 03Chunk
- 04Policy
- 05Citation
SYSTEM OVERVIEW
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 projection
- AEM source identity
- Normalized revision
- Chunk identity
- Indexed record
Control projection
- Trusted policy
- Publication state
- Locale + model version
- Retrieval filters
Combined path
- Authorized evidence
- Resolvable citation
THIS ARTICLE EXPLORES
- Separate identity, revision and storage keys.
- Decide which metadata is filterable or public.
- 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.
| Field family | Example | Use / exposure |
|---|---|---|
| Identity | sourceId, chunkId | Reconciliation; expose only safe stable identifiers. |
| Revision | contentVersion, embeddingVersion | Compatibility checks; diagnostic metadata. |
| Scope | locale, accessScope, publicationState | Filtering and authorization inputs. |
| Citation | Public application URL + title | Allowed end-user provenance. |
| Internal locator | aemPath | Private 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.
- 01Read authoritative revision
- 02Generate manifest
- 03Write replacement
- 04Switch visible revision
- 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.