Wait for solr server to be ready.