How does hash algorithm work on 2 variable at the same time? For eg:

1) insert a doc with route value 1
2) ES creates doc id "A"
3) Send a GET for doc id "A" with no routing value - In this case how is ES
able to find just one shard since it doesn't have routing value that it can
use to find the shard? In other word if doc A was inserted using hash of
value 1 then how can it find that one shard when a request comes in with no
routing value?

On Thu, Feb 20, 2014 at 6:42 PM, Binh Ly <[email protected]> wrote:

> Not sure I follow, but if routing is supplied, the routing value will be
> used to hash to a single shard on which the GET is performed on. If routing
> is not supplied, the doc ID will be used to hash to a single shard on which
> the GET is performed on. In either case, 1 shard is used to GET the
> document.
>
> --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/667559d8-5c0d-471f-ad54-a68eff38c8bc%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAOT3TWpQkg3EYkyEJzmDAE%2BdoTPbzPsG9zJGfrfbTjgq2GE19Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to