SEARCH & AI / 013

Elasticsearch vs Vector Database for AEM

A decision framework for choosing Elasticsearch or a dedicated vector database for AEM retrieval workloads, without assuming a universal winner.

SHARE
LinkedIn X Facebook Threads

Topic map

Choose an operating boundary

Elasticsearch vs vector database for AEM

  1. 01Workload
  2. 02Filters
  3. 03Ranking
  4. 04Recovery
  5. 05Ownership

SYSTEM OVERVIEW

SYSTEM / FLOW

One workload, two possible ownership models.

These are evaluation options, not a claim that either product class is universally better.

CONSOLIDATED SEARCHContentprojectionLexical + vectorstoreShared queryserviceSEPARATE VECTOR STOREContentprojectionLexical + vectorsystemsCross-store queryserviceCOMBINED PATHAuthorized rankedevidenceOperationalresponsibility

Consolidated search

  1. Content projection
  2. Lexical + vector store
  3. Shared query service

Separate vector store

  1. Content projection
  2. Lexical + vector systems
  3. Cross-store query service

Combined path

  1. Authorized ranked evidence
  2. Operational responsibility

THIS ARTICLE EXPLORES

  1. Compare storage choices against one workload.
  2. Account for metadata and authorization semantics.
  3. Evaluate recovery and team ownership alongside similarity search.

01 / PROBLEM

Choose against the queries you actually need.

A feature checklist is not enough to select a store. Fix a representative corpus, access model, update frequency and question set before comparing implementations. Do not assume vector support implies equivalent filtering or recovery behavior.

02 / VECTOR STORE

Compare the total service boundary.

A consolidated search layer may reduce synchronization work. Separate stores may offer specialized capabilities but create another consistency and operational boundary. These are design tradeoffs to measure, not performance conclusions.

Decision dimensions
DimensionQuestionEvidence
FilteringCan mandatory scope apply during retrieval?Restricted-scope cases.
Hybrid rankingWhere are lexical/vector ranks combined?Reproducible query outputs.
UpdatesHow are source generations replaced?Concurrent update/removal rehearsal.
RecoveryRestore or rebuild from source?Recovery runbook and rehearsal.
ResidencyWhere do text, vectors and inference travel?Data-flow review.
OwnershipWho upgrades and supports each dependency?Named operational responsibility.

03 / IMPLEMENTATION

Make a comparison record reproducible.

Record the workload and decision evidence rather than assigning arbitrary scores. Leave measurements empty until an experiment produces them.

Evaluation record template

JSON
{
  "candidate": "named product + version",
  "deployment": "document the actual arrangement",
  "corpusRevision": "fixed-fixture",
  "queries": "reviewed-question-set",
  "requiredFilters": [
    "locale",
    "accessScope",
    "publicationState"
  ],
  "measurements": null,
  "unresolvedRisks": []
}

04 / FAILURE MODES

Two stores can disagree about the same source.

If lexical and semantic indexes have different revisions or policy metadata, fusion can reintroduce withdrawn evidence. Apply a shared source/revision contract and a final evidence gate.

Detect divergence

A query service should be able to explain which revision each candidate represents.

  1. 01Lexical candidates
  2. 02Vector candidates
  3. 03Source / revision reconciliation
  4. 04Policy recheck
  5. 05Ranked evidence

05 / TRADEOFFS

Prefer a choice the team can recover.

The preferred option depends on workload, capabilities and operating constraints. Include migration and rollback effort in the decision; a compelling demo does not establish supportability.

Decision record

  • Attach query outputs and filter tests.
  • Document recovery and re-embedding behavior.
  • Identify version/licensing constraints.
  • Record why the simpler alternative was insufficient, if adding a new store.

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