[英]Apache solr error while connecting with mongodb
My intention is to connect mongodb with solr.我的意图是将 mongodb 与 solr 连接起来。 During the time of core creation.
在核心创建期间。 I dont know how to create a solrconfig.xml.
我不知道如何创建 solrconfig.xml。 please help me to create that.
请帮我创建它。
You can't - mongo connections aren't configured like that.你不能 - mongo 连接不是这样配置的。
Instead you have to use something like mongo-connector
.相反,您必须使用类似
mongo-connector
东西。
It'll act as a piece between your mongo collection as a replication destination, inserting updated data into your Solr collection as the mongo collection changes.它将充当作为复制目标的 mongo 集合之间的一部分,随着 mongo 集合的变化,将更新的数据插入到 Solr 集合中。
mongo-connector
creates a pipeline from a MongoDB cluster to one or more target systems, such as Solr, Elasticsearch, or another MongoDB cluster.mongo-connector
创建一个从 MongoDB 集群到一个或多个目标系统的管道,例如 Solr、Elasticsearch 或另一个 Solr、Elasticsearch 或另一个 Z21FDCCDZ2FCCD79集群。 It synchronizes data in MongoDB to the target then tails the MongoDB oplog, keeping up with operations in MongoDB in real-time.它将 MongoDB 中的数据同步到目标,然后跟踪 MongoDB oplog,实时跟上 MongoDB 中的操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.