2017-03-27 27 views

回答

1

你的代碼尋找可能你使用的是舊版本SolrJ的。

我建議升級你的SolrJ版本使用下列方法來建立你的HTTP客戶端:

String urlString = "http://localhost:8983/solr/person"; 
SolrClient solrClient = new HttpSolrClient.Builder(urlString).build();