我试图理解 Solr 分布式搜索和联合搜索概念之间的区别。是否可以使用Solr分布式搜索来实现联合搜索?要求是存在两个或多个领域模型,并且每个这样的领域系统将其自己的数据索引到基于 lucene 的索引。现在我有一个有趣的用例,我应该能够对跨具有自己索引的不同域系统的单个查询进行联合搜索。
最佳答案
不,分布式搜索与联合搜索不同。
Federated search" is the term more typically used when searching across heterogeneous data sources - think about things like meta-search engines, as a common example of this.
Distributed search is when you have a homogeneous data source, but it needs to be distributed in order to scale properly.
(取自此处 - http://wiki.apache.org/solr/FederatedSearch )
关于第二个问题 - 是否可以使用 Solr 实现联合搜索 - 我很确定这是可能的,唯一的问题是 - 这需要您付出多少努力。
我可以看到可能的解决方案,在 Solr 中创建单独的集合并查询它们,然后在查询时合并所有结果,但这只是一个原始想法。
关于search - Solr分布式搜索与联合搜索相同吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29779713/