How to join two different cores from two different

2019-08-20 12:57发布

问题:

So I have some cores in one solr server and some cores in another solr server and I need to join them.

The schema of the cores are different with no matching attribute name but matching attribute value. I tried to do it with join & shards but both didn't work. Can you help me out?

  • attribute1 is in abc:7892/solr/core1

  • attribute2, attribute3 is in xyz:8983/solr/core2


{!join from=attribute1 to=attribute2 fromIndex="xyz:8983/solr/core2"} attribute3:*

Error Message :

Cross-core join: no such core xyz:8983/solr/core2

Thanks.

回答1:

join does not support joining across different servers, even in SolrCloud mode it has constraints in that sense, see here.

What you could do is use Streaming Expressions, by using a search as a source, and then you have several types of joins etc, look at the docs and examples.



标签: solr