在 Solr 中创建两个使用相同模式的实例的最佳方法是什么?
我使用 Solr 对 Mysql 数据库建立了索引,一切都很完美。现在我得到了另一个数据库,它使用与我的第一个数据库完全相同的架构,但其中包含不同的数据。
我想要的是使用 Solr 也使用我为第一个数据库创建的相同 solr 模式来索引第二个数据库,因为它们完全相同!
我读到 Solr 核心允许您运行使用不同配置集和索引的多个实例,但就我而言,我得到了完全相同的配置,唯一改变的是数据库名称。
我的问题是创建两个使用相同配置的 Solr 实例的最佳方法是什么?
干杯
I got indexed a Mysql database using Solr and everything is perfect. Now i got another database which uses exactly the same schema as my first database but with different data in it.
What i want is to use Solr to index also the second database using the same solr schema that i created for my first database since are completely the same!
I read that Solr cores allows you to run multiple instances that use different configuration sets and indexes, but in my case i got the same exactly configuration, the only thing that changes is the database name.
My question is what is the best way two create two Solr instances that use the same configuration?
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用两个核心并共享一个架构。只需阅读 Wiki。但实际上,您可能希望保持灵活性,只需复制第二个核心的架构。
You could use two cores and share a schema. Just read the Wiki. But in practice you might want to keep the flexibility and just copy the schema for a second core.
如何仅使用一个 solr 实例,但在架构中包含一个字段,其中包含一个指示记录来自哪个数据库/源的值。
How about using only one solr instance but have a field in the schema that contains a value which indicates which db/source the record came from.