Search in sources :

Example 1 with ConcurrentUpdateSolrServer

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;
}
Also used : ConcurrentUpdateSolrServer(org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer) HttpSolrServer(org.apache.solr.client.solrj.impl.HttpSolrServer) SolrServer(org.apache.solr.client.solrj.SolrServer) ConcurrentUpdateSolrServer(org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer) CloudSolrServer(org.apache.solr.client.solrj.impl.CloudSolrServer) HttpSolrServer(org.apache.solr.client.solrj.impl.HttpSolrServer) CheckForNull(javax.annotation.CheckForNull)

Aggregations

CheckForNull (javax.annotation.CheckForNull)1 SolrServer (org.apache.solr.client.solrj.SolrServer)1 CloudSolrServer (org.apache.solr.client.solrj.impl.CloudSolrServer)1 ConcurrentUpdateSolrServer (org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer)1 HttpSolrServer (org.apache.solr.client.solrj.impl.HttpSolrServer)1