
org.dspace.statistics.HttpSolrClientFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dspace-api Show documentation
Show all versions of dspace-api Show documentation
DSpace core data model and service APIs.
The newest version!
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.statistics;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
/**
* Factory of HtmlSolrClient instances.
*
* @author mwood
*/
public class HttpSolrClientFactory
implements SolrClientFactory {
@Override
public SolrClient getClient(String coreUrl) {
SolrClient client = new HttpSolrClient.Builder()
.withBaseSolrUrl(coreUrl)
.build();
return client;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy