Hi, I'd have a look at the search shards api, which given a search request returns which shards (and nodes) it would get executed on, without actually executing it. Have a look at issue #2726<https://github.com/elasticsearch/elasticsearch/issues/2726> .
On Sunday, February 16, 2014 11:09:01 PM UTC+1, Daniel Winterstein wrote: > > Hello, > > Is it possible to find out (a) which logical shard a document is in, and > (b) which servers are holding that shard? > These are documents with parents, so setRouting() is used when indexing. > > NB: I'm working in Java using the Java client. > > Why? > I want to do distributed computation, where the processing for a document > happens on the server holding the data. > I'm using a parent-child routing scheme, which means that large blocks of > related data will end up in the same shard. > Shifting computation to be near data, rather than vice-versa, would make a > significant difference. > Also, I'm thinking the holding servers can be used as part of coordinating > the distribution of jobs. > > Thank you for any help, > - Daniel > > -- 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/42962441-8178-48b2-92c3-4f92da1721f2%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
