1.相同结构跨core
重点需要注意的是:core都相同才行
http://10.217.37.28:8983/solr/roleCore/select?q=title:111&collection=rolrPermisCore,roleCore
或者
http://10.217.37.28:8983/solr/rolrPermisCore/select?q=id:1&wt=json&indent=true&shards.info=true&shards=10.217.37.28:8983/solr/roleCore,10.217.37.28:8983/solr/rolrPermisCore
如果不相同,可能结果是任意core的结果
2.不同结构跨core
需要注意的是:相当于字查询in
sql.setQuery("{!join fromIndex=rolrPermisCore toIndex=roleCore from=roleId to=roleId}roleId:1");
相当于主外键查询