从 Couchdb 迁移到 Elasticsearch

Migration from Couchdb to Elasticsearch

我想将我的多数据库 CouchDB(Cloudant) 服务器迁移到 ElasticSearch 2.x。目前我可以使用 Logstash couch_changes 插件将 CouchDB 数据库同步到我的 ElasticSearch 服务器。问题是架构。是否可以在 ElasticSearch 上设计类似 CouchDB 的类似架构,我可以在其中为我的租户创建单独的数据库或类似容器的数据库?

Elasticsearch 上的类比有所不同。但是你可以粗略地把elasticsearch索引看成是其他RDMS中的数据库。

检查:https://www.elastic.co/blog/what-is-an-elasticsearch-index

MySQL => Databases => Tables => Columns/Rows
Elasticsearch => Indices => Types => Documents with Properties

您可以创建多个索引。