
Move Data from OpenSearch to Elasticsearch — The Right Way
A Script Kit for Rails Devs Migrating Search Infrastructure
No flaky tools. No guessing. Just working Ruby scripts.
✅ What You’ll Get:
migrate_index.rb
: Scrolls an entire index from OpenSearch and bulk inserts it into your Elasticsearch instanceget_mapping.rb
: Extracts and saves existing index mappings from OpenSearch to reuse on your new clusterverify_index_counts.rb
: Compares document counts across both systems to sanity-check your migration
These are real-world scripts used in a production migration from AWS OpenSearch to Hetzner-hosted Elasticsearch 7.10.2 — no magic, just code that works.
✋ Who this is for:
- Solo devs and small teams who want reliable Rails deploys
- Anyone frustrated by broken CI/CD pipelines
- Rails developers who still love Capistrano (like me)
📦 How It Works:
Enter your email below and I’ll send you the full ZIP package instantly.
No spam. No sales pitch. Just a setup I actually use on every project.
Looking for more help?
If you hit a wall—or just want to sanity check your setup—feel free to reach out. I help Rails devs and small teams clean up infrastructure as part of my Rails Rescue Sprints.