lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amrit Sarkar <>
Subject Re: How to routing document for send to particular shard range
Date Wed, 08 Nov 2017 07:05:37 GMT

If you know defined indexing architecture; isn't it better to use
"implicit" router by writing logic on your own end.

If the document is of "Org1", send the document with extra param*
"_route_:shard1"* and likewise.

Snippet from official doc:

If you created the collection and defined the "implicit" router at the time
> of creation, you can additionally define a router.field parameter to use a
> field from each document to identify a shard where the document belongs. If
> the field specified is missing in the document, however, the document will
> be rejected. You could also use the _route_ parameter to name a specific
> shard.

Amrit Sarkar
Search Engineer
Lucidworks, Inc.

On Wed, Nov 8, 2017 at 11:15 AM, Ketan Thanki <> wrote:

> Hi,
> I have requirement now quite different as I need to set routing key hash
> for document which confirm it to send to particular shard as its range.
> I have solrcloud configuration with 4 shard  & 4 replica with below shard
> range.
> shard1: 80000000-bfffffff
> shard2: c0000000-ffffffff
> shard3: 0-3fffffff
> shard4: 40000000-7fffffff
> e.g: below show the project  works in organization which is my routing key.
> Org1= works for project1,project2
> Org2=works for project3
> Org3=works for project4
> Org4=project5
> So as mentions above I want to index org1 to shard1,org2 to shard2,org3 to
> shard3,org4 to shard4 meanwhile send it to particular shard.
> How could I manage compositeId routing to do this.
> Regards,
> Ketan.
> Please cast a vote for Asite in the 2017 Construction Computing Awards:
> Click here to Vote<
> cca2017vote>
> [CC Award Winners!]

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message