簡體   English   中英

Solr聯接在Solr雲環境中不起作用

[英]Solr join not working on solr cloud environment

例如:我在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也是如此。

嘗試合並查詢以包括兩個集合。

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

暫無
暫無

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

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