lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: indexing data to solrcloud with "implicit" is not distributing across cluster.
Date Wed, 15 Jun 2016 18:58:13 GMT
Did you try setting the "magic" field _route_ in your docs to the
shard? Something like
doc.addField("_route", "shard1")?


On Wed, Jun 15, 2016 at 10:31 AM, nikosmarinos <> wrote:
> Is it possible to give an example? I want doc1 to be explicitly routed to
> "shard1" of my "implicit" collection and doc2 to "shard4". How can I do
> that?
> Creating an implicit collection with one of the example configurations of
> the solr package, defining the "id" field as the router.field (not sure if
> necessary) and indexing id:shard1 id:shard2 id:shard3 takes all documents to
> the same (random) shard.
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

View raw message