OpenSearch vs Elasticsearch: どちらの検索エンジン?
OpenSearch は AWS とコミュニティが主導する Elasticsearch の Apache-2.0 フォークです。Elasticsearch は Elastic のライセンス下にあるオリジナルのエンジンです。
OpenSearch はライセンス変更後に Elasticsearch 7.10 からフォークし、独自のダッシュボードと機能ロードマップを持つ完全にオープン (Apache-2.0) な検索・分析エンジンを提供します。Elasticsearch は SSPL/Elastic License (および再び AGPL) の下で Elastic のもとで継続し、高度な機能と緊密な商用統合を提供します。OpenSearch は寛容なライセンスと AWS 統合で勝り、Elasticsearch は最も高度な機能とオリジナルのエコシステムで勝ります。
| OpenSearch | Elasticsearch | |
|---|---|---|
| ライセンス | Apache-2.0 | Elastic / AGPL / SSPL |
| 起源 | ES 7.10 のフォーク | オリジナル |
| ダッシュボード | OpenSearch Dashboards | Kibana |
| クラウドへの適合 | AWS ネイティブ | Elastic Cloud |
| 最適な用途 | オープンなライセンス、AWS | 最新機能、オリジナル |
ユースケースとライセンス
OpenSearch は、完全に寛容なライセンスを必要とするチームや、AWS マネージドの OpenSearch Service で運用するチームに適しています。Elasticsearch は、最新機能、ML、オリジナルの Elastic エコシステムと商用サポートを望むチームに適しています。
運用と CI への適合
両者は時間とともに分岐しましたが、運用面では概ね似たままで、client と API の互換性はバージョンによって異なります。どちらも CI でエフェメラルなクラスタに対して統合テストされ、より高速なマネージドランナーがイメージの pull とインデックステストを高速化します。
Decide with your own numbers, not a feature table
Feature comparisons age badly and rarely decide anything, because both tools in a mature category can do the job. What differs is how each behaves on your repository, and that takes one afternoon to measure.
# time a cold install with each candidate, cache cleared
hyperfine --prepare "rm -rf node_modules" --warmup 1 \
"<tool-a> install" "<tool-b> install"
# and the thing CI actually pays for: a cold run with no local cache
docker run --rm -v "$(pwd):/w" -w /w node:22 sh -c "<tool> install"What actually changes when you switch
- Lockfile format. A switch is a one-way door for anyone still on the old tool until everyone migrates, so plan it as a single coordinated change.
- Resolution strictness. Tools differ on whether an undeclared transitive import works, and the stricter one will surface latent bugs as new failures.
- CI cache configuration. The cache path and key differ per tool; carrying over the old ones silently disables caching.
- Everyone on the team and every runner must move together. Pin the version so they cannot drift.
結論
寛容な Apache-2.0 ライセンスまたは AWS マネージドの検索が必要なら OpenSearch。最新の機能とオリジナルのエコシステムが欲しいなら Elasticsearch。通常はライセンスとクラウド戦略で決まります。