簡體   English   中英

Solr加入solrcloud環境中的多個集合嗎?

[英]Solr join for multiple collection in solrcloud environment?

我有一個類似下面的場景:

集合A具有:

<field name="id" type="string" indexed="true" stored="true"/> <!--  Not unique in Collection A but unique in Collection B as uid-->
<field name="type" type="string" indexed="true" stored="true"/>

集合B具有:

<field name="uid" type="string" indexed="true" stored="true"/> <!-- unique -->
<field name="name" type="string" indexed="true" stored="true"/ 

現在,我需要像這樣加入這兩個集合:

對於集合A的所有type ='xxx',請從集合B中獲取所有數據。

Solr是新手,甚至不確定它是否可行。 但這可以在DB中輕松完成。 有什么建議嗎?

僅當兩個集合都在同一服務器上時,以上解決方案才有效。 如果它們位於不同的服務器中,那么solr cloud對此有限制。 如何從兩個不同的Solr服務器連接兩個不同的核心?

這樣的事情應該可以幫助您...

{!join from = fromField to = toField fromIndex = fromCoreName} fromQuery

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM