i am new in Solr, i wanna use solrj in java, but i get exception for this :
CommonsHttpSolrServer server = new CommonsHttpSolrServer("http://localhost:8983/solr");
exception is this :
Exception in thread “main” org.apache.solr.client.solrj.SolrServerException: java.net.ConnectException: Connection refused: connect
what must i do, and i want to learn solr good, but i couldn’t find good any blog, or book and etc. for beginner, if anyone know please write
thanks for all…
This exception occurs when your Solr instance is not running or when you try to access wrong port. Check port number and restart your Solr instance.