Reputation: 561
I am trying to run the simple solrj api example and facing the below error.Any suggestions pls.
Upvotes: 0
Views: 36
Reputation: 30187
Looking at your code probably you're using an old version of SolrJ.
I suggest to upgrade your SolrJ version to use the following way to create your HTTP client:
String urlString = "http://localhost:8983/solr/person";
SolrClient solrClient = new HttpSolrClient.Builder(urlString).build();
Upvotes: 1