我正在使用Sorl v3.6.1并已成功管理索引数据以及使用Apache Tika索引二进制项目。我使用SolrNet
来拉出这些数据。不过,我有一个问题,我想将2个结果链接在一起。通过SolrNet合并Solr查询结果
现在考虑下面的XML(这只是为了演示):
<doc>
<id>263</id>
<title>This is the title</title>
<summary>This is the summary<summary/>
<binary_id>994832</binary_id>
</doc>
<doc>
<id>994832</id>
<title>This is the title</title>
<summary>This is the summary<summary/>
<text>this is the contents of the binary</text>
</doc>
是否有可能(通过SolrNet)上述两个结果合并在一起,这样当用户搜索这个内容的二进制它也返回第一项中的数据?
在我的例子中,你可以看到第一个项目包含二进制的ID(994832),所以我最初的想法是我需要做2个查询并以某种方式合并它们?
不确定如何做到这一点,所以任何帮助将不胜感激。