All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dspace.statistics.HttpSolrClientFactory Maven / Gradle / Ivy

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