use of org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer in project jackrabbit-oak by apache.
the class RemoteSolrServerProvider method getIndexingSolrServer.
@CheckForNull
@Override
public SolrServer getIndexingSolrServer() throws Exception {
SolrServer server = getSolrServer();
if (server instanceof HttpSolrServer) {
String url = ((HttpSolrServer) server).getBaseURL();
server = new ConcurrentUpdateSolrServer(url, 1000, Runtime.getRuntime().availableProcessors());
}
return server;
}
Aggregations