The _cat/shards API will tell you this - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-shards.html
Regards, Mark Walkom Infrastructure Engineer Campaign Monitor email: [email protected] web: www.campaignmonitor.com On 14 August 2014 03:19, 'Sandeep Ramesh Khanzode' via elasticsearch < [email protected]> wrote: > Hi, > > Can I using Cluster API or some other Java way, find the shards that are > allocated to cluster -> node -> index. > > I would like to check which shards are deployed to a physical node, and > query only that shard to find what was indexed on that data. > > I would be using a _routing value, and using this query, I want to check > which routing value went to which shard. > > Thanks, > Sandeep > > -- > 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/808f15d3-f552-4fb9-a404-8645faaded79%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/808f15d3-f552-4fb9-a404-8645faaded79%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAEM624ZQcMFxNTDN6jTRp4REXRsjTCQgT4ZVkJ%3Dvug%2B9r3K5kA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
