Hi Erik,

My requirement to index the documents of particular organization to specific shard. Also I have made changes in core.properties as menions below.

Model Collection:
name=model
shard=shard1
collection=model
router.name=implicit
router.field=core
shards=shard1,shard2

Workset Collection:
name=workset
shard=shard1
collection=workset
router.name=implicit
router.field=core
shards=shard1,shard2

here I have also created new field 'core' which value is any shard where I need to send documents and on retrieval use '_route_'  parameter with mentioning the particular shard. But issue facing still my clusterstate.json showing the "router":{"name":"compositeId"} is it means my settings not impacted? or its default.

Please do needful.

Regards,

-----Original Message-----
From: Erick Erickson [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 10, 2017 12:06 PM
To: solr-user
Subject: Re: How to routing document for send to particular shard range

You cannot just make configuration changes, whether you use implicit or compositeId is defined when you _create_ the collection and cannot be changed later.

You need to create a new collection and specify router.name=implicit when you create it. Then you can route documents as you desire.

I would caution against this though. If you use implicit routing _you_ have to insure balancing. For instance, you could have 10,000,000 documents for "Org1" and 15 for "Org2", resulting in hugely unbalanced shards.

Implicit routing is particularly useful for time-series indexing, where you, say, index a day's worth of documents to each shard. It may be appropriate in your case, but so far you haven't told us _why_ you think routing docs to particular shards is desirable.

Best,
Erick

On Thu, Nov 9, 2017 at 10:27 PM, Ketan Thanki <[EMAIL PROTECTED]> wrote:
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB