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.
Topic map
Choose an operating boundary
Elasticsearch vs vector database for AEM
- 01Workload
- 02Filters
- 03Ranking
- 04Recovery
- 05Ownership
SYSTEM OVERVIEW
One workload, two possible ownership models.
These are evaluation options, not a claim that either product class is universally better.
Consolidated search
- Content projection
- Lexical + vector store
- Shared query service
Separate vector store
- Content projection
- Lexical + vector systems
- Cross-store query service
Combined path
- Authorized ranked evidence
- Operational responsibility
THIS ARTICLE EXPLORES
- Compare storage choices against one workload.
- Account for metadata and authorization semantics.
- 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.
| Dimension | Question | Evidence |
|---|---|---|
| Filtering | Can mandatory scope apply during retrieval? | Restricted-scope cases. |
| Hybrid ranking | Where are lexical/vector ranks combined? | Reproducible query outputs. |
| Updates | How are source generations replaced? | Concurrent update/removal rehearsal. |
| Recovery | Restore or rebuild from source? | Recovery runbook and rehearsal. |
| Residency | Where do text, vectors and inference travel? | Data-flow review. |
| Ownership | Who 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.
- 01Lexical candidates
- 02Vector candidates
- 03Source / revision reconciliation
- 04Policy recheck
- 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.