Files
anything/docs/adr/0014-recherche-opensearch.md
mbhd90andClaude Opus 5.5 35ccef3ce0 docs: bootstrap ONAPAY platform repository (from-scratch rebuild)
- CLAUDE.md v1.1, 19 ADRs (ADR-0019: rebuild from scratch, Anything MVP code not reused)
- Architecture docs (microservices, stack, UI composition, Kubernetes deployment)
- Cost, pricing and production run-cost estimate
- Contract specs (CDC v1.0, v2.0, MVP V1, vision v4.0)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 23:59:28 +03:00

10 lines
670 B
Markdown

# ADR-0014 — Recherche : PostgreSQL au PoC, Amazon OpenSearch en Phase 1
**Statut** : Accepté · 2026-12-03
**Décision** :
- PoC (50 commerçants) : `pg_trgm` + PostGIS dans `merchant-service` pour la recherche de commerçants (paiement sans QR).
- Phase 1 : `search-service` (NestJS) + **Amazon OpenSearch** pour l'annuaire commerçants (fautes de frappe, géolocalisation), la recherche globale de la console support et, en Phase 2, la marketplace.
- Indexation idempotente : `_id` = identifiant métier, `version_type=external`.
- Aucune PII en clair ; sécurité au niveau du document par `merchant_id`.
- Jamais source de vérité. Les logs restent dans Loki.