user527
user527

Reputation: 205

Solr exception java & beginner in solr

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

Answers (2)

Parvin Gasimzade
Parvin Gasimzade

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

Stanley
Stanley

Reputation: 5137

I think your SOLR server is not started or it is not listening on port 8983.

Upvotes: 0

Related Questions