Use the _route_ field and put in "day_1" or "day_2". You've presumably
named the shards (the "shard" parameter) when you added them with the
CREATESHARD command so use the value you specified there.

Best,
Erick

On Wed, Jul 5, 2017 at 6:15 PM,  <im...@elogic.pk> wrote:
> I am trying out the document routing feature in Solr 6.4.1. I am unable to 
> comprehend the documentation where it states that
> “The 'implicit' router does not
> automatically route documents to different
> shards.  Whichever shard you indicate on the
> indexing request (or within each document) will
> be used as the destination for those documents”
>
> How do you specify the shard inside a document? E.g If I have basic 
> collection with two shards called day_1 and day_2. What value should be 
> populated in the router field that will ensure the document routing to the 
> respective shard?
>
> Regards,
> Imran
>
> Sent from Mail for Windows 10
>

Reply via email to