什么是替换
HttpSolrServer solrServer = new HttpSolrServer(builder.build().toString());
qoefvg9y1#
这是一个解决方案:solrClient solrServer =新的HttpSolrClient.构建器(solrLocation).构建();
piok6c0g2#
正如文档所述:已弃用。请使用HttpSolrClient@已弃用的公共类HttpSolrServer扩展了HttpSolrClient
HttpSolrClient solrServer = new HttpSolrClient (builder.build().toString());
4sup72z83#
Solrj 9.x使用以下内容
SolrClient client = new Http2SolrClient.Builder("http://localhost:8983/solr/Collection1").build()
3条答案
按热度按时间qoefvg9y1#
这是一个解决方案:
solrClient solrServer =新的HttpSolrClient.构建器(solrLocation).构建();
piok6c0g2#
正如文档所述:
已弃用。请使用HttpSolrClient
@已弃用的公共类HttpSolrServer扩展了HttpSolrClient
4sup72z83#
Solrj 9.x使用以下内容