If you are doing Java, you can do: node.client().admin().cluster().prepareHealth().setWaitForYellowStatus().execute().actionGet();
> Le 22 oct. 2014 à 04:33, Weiguo Xia <[email protected]> a écrit : > > Hi, > I am new to elasticsearch, I meet a some problem. > > I write a code that need the elasticsearch is ready to use. In my code, I > run the elasticsearch first. But it need some time that elasticsearch is > ready. > > How can I tell when the elasticsearch is ready? > > Thank you. > WX > -- > 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/7a24d6d0-5186-4e04-a471-9a4718ef46f7%40googlegroups.com. > 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/E992B67D-D9E5-45D4-BAF6-4EBC0DE7B03B%40pilato.fr. For more options, visit https://groups.google.com/d/optout.
