将数据添加到多核 solr 实例中的特定核心
Adding Data to a particular core in multicore solr instance
我已完成以下步骤来创建 Solr 的 多核 设置。
我在 Jetty 上有一个 Solr 实例 运行ning(我使用了默认配置)。
我已经将 1 个核心复制到另一个,
1) 现在在这个场景中。如果我 运行 post.jar 命令将文档添加到索引,那么它会被添加到 both 核心吗?
2) 因此,如果我查询 Solr 索引,那么哪个核心将获取结果?
3) 我应该使用哪个命令来 post 新文档以在特定核心中建立索引?
你是分片的还是复制的?阅读 this if you don't know. 1) Either sharding or replicated are synchronized internally by solr, so it should be divided or added in both cores. 2) It doesn't matter which one, solr does that for you, you just need to have zooKeeper ready to accept and balance requests between each core. 3) You can't if your're adding data to a core that is replicated, but if you're sharding cores I think it's possible, it was answered here: How to index data in a specific shard using solrj
我已完成以下步骤来创建 Solr 的 多核 设置。
我在 Jetty 上有一个 Solr 实例 运行ning(我使用了默认配置)。
我已经将 1 个核心复制到另一个,
1) 现在在这个场景中。如果我 运行 post.jar 命令将文档添加到索引,那么它会被添加到 both 核心吗? 2) 因此,如果我查询 Solr 索引,那么哪个核心将获取结果? 3) 我应该使用哪个命令来 post 新文档以在特定核心中建立索引?
你是分片的还是复制的?阅读 this if you don't know. 1) Either sharding or replicated are synchronized internally by solr, so it should be divided or added in both cores. 2) It doesn't matter which one, solr does that for you, you just need to have zooKeeper ready to accept and balance requests between each core. 3) You can't if your're adding data to a core that is replicated, but if you're sharding cores I think it's possible, it was answered here: How to index data in a specific shard using solrj