I'm trying to split my solrcloud collection into shards based on date field. ie, Documents should be routed to different shards based on the year in the date field. As of now im using compositeid sharding. How can i approach this ?
then you just use the following compositeId: