【问题标题】:SOLR Join and filter on both coresSOLR 在两个核心上加入和过滤
【发布时间】:2017-05-09 04:02:02
【问题描述】:

是否可以对使用 join 的两个 SOLR 核心进行过滤..

我有两个核心:

第一核心(人): ID 姓名 姓氏

第二核心(文章): ID person_id 标题 说明

我想从人名像“test”和文章标题像“test”的地方得到结果

这可以吗?

示例我认为它应该如何工作,但它没有:(此查询显示字段标题不存在)

{!join from=id fromIndex=person to=person_id}(name:("test")*) OR (title:("test")*)

【问题讨论】:

    标签: solr


    【解决方案1】:

    据我了解,使用 solr join 只能从一个索引中获取结果。

    如果您需要两者的结果,那么您可能需要使用 2 个 solr 查询,

    1. 从 Person where (name:("test")*) 获取结果
    2. 从 Article where (title:("test")*) and person_id = ids from first query 中获取结果。

    【讨论】:

      猜你喜欢
      • 2018-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-20
      • 2014-10-11
      • 2016-03-22
      • 1970-01-01
      相关资源
      最近更新 更多