Thanks Erick,

You know how to use this method. Or I need to dive into the code?

I've the document_id as string uniqueKey and have 12 shards.

On Fri, Dec 14, 2018 at 5:58 PM Erick Erickson <erickerick...@gmail.com>
wrote:

> Sure. Of course you have to make sure you use the exact same hashing
> algorithm on the <uniqueKey>.
>
> See CompositeIdRouter.sliceHash
>
> Best,
> Erick
> On Fri, Dec 14, 2018 at 3:36 AM Mahmoud Almokadem
> <prog.mahm...@gmail.com> wrote:
> >
> > Hello,
> >
> > I've a corruption on some of the shards on my collection and I've a full
> > dataset on my database, and I'm using CompositeId for routing documents.
> >
> > Can I traverse the whole dataset and do something like hashing the
> > document_id to identify that this document belongs to a specific shard
> to
> > send the desired documents only instead of reindex the whole dataset?
> >
> > Sincerely,
> > Mahmoud
>

Reply via email to