【问题标题】:Solr join not working on solr cloud environmentSolr join 不适用于 solr 云环境
【发布时间】:2015-02-14 06:08:25
【问题描述】:

例如:我在 solr 云环境中有 2 个分片,我的查询类似于 http://localhost:8983/solr/B/select?wt=json&indent=true&q=*:*&fq={!join from=id to=uid fromIndex=A}type:xxx

现在从集合 B 中检索数据时会发生什么,该查询仅在为连接查询提供数据的分片中搜索 {!join from=id to=uid fromIndex=A}type:xxx

表示如果在分片 2 中找到集合 A 的文档,则查询仅搜索分片 2 中的数据,即使是集合 B 也是如此。

【问题讨论】:

    标签: solr lucene solrcloud


    【解决方案1】:

    尝试合并查询以包含两个集合。

    localhost:8983/solr/B/select?wt=json&indent=true&q=:&fq={!join 从=id 到=uid fromIndex=A}type:xxx,localhost:8983/solr/A/select?wt=json&indent=true&q=:&fq={!join from=id to=uid fromIndex=B}

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-24
      • 1970-01-01
      • 2012-02-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多