mongo2elastic
JSON →A TypeScript library (v0.58.0) that syncs MongoDB collections to Elasticsearch using change streams and optional schema conversion. It supports initial bulk scans, real-time change stream processing, schema change detection, and automatic mapping generation from MongoDB JSON schemas with Elasticsearch-specific overrides (e.g., geo_point, nested types, copy_to). Active development with monthly releases. Key differentiators: provides both a sync engine and standalone schema conversion utilities, handles change stream lifecycle (start/stop on schema change), and supports Redis-backed resume tokens. Requires Node >=16, MongoDB >=6.8, Elasticsearch >=8.14, and ioredis >=5.4.
Resources
packagemongo2elastic ↗