solr core vs elasticsearch 哪个功能?

solr core vs elasticsearch which feature?

我们计划将三个应用程序从 solr 迁移到 elasticsearch。我们面临的一个问题是,所有这些应用程序都使用 solr 的单个实例,并且它们使用 solr 中的 cores 来保护它们的数据免受其他应用程序的影响。因此,每个应用程序在 solr 中都有自己的核心。因此,没有其他应用可以 read/update 它的数据。

我浏览了一些关于 elasticsearch 的比较站点和介绍性教程,但无法找出可以从 elasticsearch 中使用的功能来实现相同的功能。为每个应用程序获取单独的 elasticsearch 实例不是一种选择。

与 Solr 中的核心相同的概念是 an index in Elasticsearch。每个索引都独立于其他索引(具有自己的索引配置/模式/等),就像 Solr 中的核心或集合一样。

An index can be thought of as an optimized collection of documents and each document is a collection of fields, which are the key-value pairs that contain your data. By default, Elasticsearch indexes all data in every field and each indexed field has a dedicated, optimized data structure.