What causes this? Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/impl/client/CloseableHttpClient at org.apache.solr.client.solrj.impl.HttpSolrClient.<init>(HttpSolrClient.java:209) at org.apache.solr.client.solrj.impl.HttpSolrClient$Builder.build(HttpSolrClient.java:874)
The code is: return new HttpSolrClient.Builder(urlString).build(); After connecting to a Solr server, should I call solrServer.close(); or should I leave the connection open until the entire index is built?