Reputation: 205
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...
Upvotes: 3
Views: 4633
Reputation: 26032
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.
Upvotes: 1
Reputation: 5137
I think your SOLR server is not started or it is not listening on port 8983.
Upvotes: 0