Sure, it's up to you. But if for matter of fact, it EmbeddedSolrServer
request has "collection" param, it pulls shards from zk and executed
distributed request.
see
http://people.apache.org/~mkhl/searchable-solr-guide-7-3/transforming-result-documents.html#cores-and-collections-in-solrcloud

https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java#L323

On Fri, Jul 27, 2018 at 11:48 AM Nicolas Franck <nicolas.fra...@ugent.be>
wrote:

> From what I've seen now, it seems that you can only directly connect to a
> specific core on your own node,
> right? Should have expected that: it is local ;-)
>
> Then I'll stick to the old solution that worked after all.
>
> Thanks for all the advice
>
> On 26 Jul 2018, at 14:28, Mikhail Khludnev <m...@apache.org> wrote:
>
> [subquery] calls remote cloud collections if collection parameter (which
> is somewhat not well known, documented) is supplied
>
> https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java#L334
>
>
> On Thu, Jul 26, 2018 at 3:05 PM Nicolas Franck <nicolas.fra...@ugent.be>
> wrote:
>
>> I'm writing a solr plugin in java that has to query another solr
>> collection to gather
>> information. What is the best way to do this?
>>
>> For now I'm just using a SolrClient ( CloudSolrClient ), but has several
>> disadvantages:
>>
>> * you have to extract from core metadata where your server resides, and
>> setup your SolrClient accordingly.
>> * you are just knocking at the same door
>> * search has to go over http for the same core.
>>
>> Is there a better way? Are there any examples?
>>
>> Thanks in advance
>>
>> Nicolas Franck
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: dev-h...@lucene.apache.org
>>
>>
>
> --
> Sincerely yours
> Mikhail Khludnev
>
>
>

-- 
Sincerely yours
Mikhail Khludnev

Reply via email to