You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Erick Erickson <er...@gmail.com> on 2017/07/05 16:22:19 UTC

Re: help on implicit routing

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
>