Hi,

1. You can usr solr collections api to create collection with "*implicit*"
router.
Please check, CREATE
https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api1

2. There's several ways to indicate which collection you want send request
to.
    a> setDefaultCollection
    b> sendRequest(SolrRequest request, String collection)
Please check
https://lucene.apache.org/solr/6_1_0/solr-solrj/org/apache/solr/client/solrj/impl/CloudSolrClient.html

Regards,
Jerome


On Wed, Nov 23, 2016 at 6:43 PM, Udit Tyagi <udittyagi1...@gmail.com> wrote:

> Hi,
>
> I am a solr user, I am using solr-6.3.0 version, I have some doubts for
> Distributed indexing and sharding in SolrCloud pease clarify,
>
> 1. How can I index documents to a specific shard(I heard about document
> routing not documentation is not proper for that).
>
> I am using solr create command from terminal to create collection i don't
> have any option to specify router name while creating collection from
> terminal so how can i implement implicit router for my collection.
>
> 2.In documentation of Solr-6.3.0 for client API solrj the way to connect to
> solrcloud is specified as
>
> String zkHostString = "zkServerA:2181,zkServerB:2181,zkServerC:2181/solr";
> SolrClient solr = new
> CloudSolrClient.Builder().withZkHost(zkHostString).build();
>
> please update documentation or reply back how can i specify collection name
> to
> query after connecting to zookeeper.
>
> Any help will be appreciated,Thanks
>
> Regards,
> Udit Tyagi
>

Reply via email to