【发布时间】:2017-01-15 04:34:58
【问题描述】:
我将 Apache Solr 6.3.0 和 MongoDB 3.4 用于advance text search 功能。我已经成功,synced mongodb with solr cores 使用 mongo-connector 2.5 和 solr doc manager。
我想知道right way and practices to use solr with mongo,我有一些问题需要帮助:
1)。既然我的data is available both in mongo database and also indexed and stored in Solr cores,我现在应该query Solr all the time 吗?还是我应该只 query solr for text search 并在 mongo 上执行 rest of the queries ?
2)。有什么方法可以让我发挥强大的search directly on mongo database using the indexing done by Solr 吗?
3)。我有一些包含deeply nested json data 的集合,MongoDb 很好地支持它们。 Solr indexes and stores flattened form 中的此类数据。但是,我想在 query response 中 maintain the original nested json format。这是我可以通过 Solr 实现的吗?
其他suggestions about good practices 将 solr 与 mongoDb 一起使用将非常有帮助。
【问题讨论】: