简体   繁体   English

将数据添加到多核solr实例中的特定核心

[英]Adding Data to a particular core in multicore solr instance

I have done the following steps to create a multicore setup of Solr . 我已完成以下步骤来创建Solr多核设置。

I have a Solr instance running on Jetty (I have used the default configurations). 我有一个在Jetty上运行的Solr实例(我使用了默认配置)。

I have copied 1 core to another, 我已将1个核心复制到另一个核心,

1) Now in this scenario. 1)现在在这种情况下。 if I run the post.jar command to add a document to an index, then will it be added to both cores? 如果我运行post.jar命令将文档添加到索引,那么它是否会被添加到两个核心? 2) So if I query the Solr index then which core will fetch the result? 2)因此,如果我查询Solr索引,那么哪个核心将获取结果? 3) Which command should I use to post a new document for indexing in a particular core? 3)我应该使用哪个命令发布新文档以在特定核心中编制索引?

Did you shard it or was it replicated? 你有没有它或者它是否被复制了? Read 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. 1)通过solr在内部同步分片或复制,因此应在两个核心中对其进行分割或添加。 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. 2)无论哪一个,solr为你做这件事,你只需要让zooKeeper准备接受并平衡每个核心之间的请求。 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 3)你不能将数据添加到被复制的核心,但是如果你正在分析核心,我认为这是可能的,这里有答案: 如何使用solrj索引特定分片中的数据

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM