title: MongoDB - range based sharding command
body: <p>I have been reading about MongoDB's range based sharding and want to apply that to my collection with the following rules. All EntityId fields &lt; 1000 must go to shard 1, EntityId fields between 1001 and 2000 should go to shard 2 and for other EntityId values, go to shard 3. Wonder how the sh.shardCollection looks like for this? I couldn't find an example for this.</p>