mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
Update to new solr server object
This commit is contained in:
@@ -8,13 +8,11 @@
|
||||
|
||||
package org.dspace.xoai.solr;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
|
||||
import org.apache.log4j.LogManager;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.solr.client.solrj.SolrServer;
|
||||
import org.apache.solr.client.solrj.SolrServerException;
|
||||
import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer;
|
||||
import org.apache.solr.client.solrj.impl.HttpSolrServer;
|
||||
import org.dspace.core.ConfigurationManager;
|
||||
|
||||
/**
|
||||
@@ -33,14 +31,10 @@ public class DSpaceSolrServer
|
||||
{
|
||||
try
|
||||
{
|
||||
_server = new CommonsHttpSolrServer(
|
||||
_server = new HttpSolrServer(
|
||||
ConfigurationManager.getProperty("oai", "solr.url"));
|
||||
log.debug("Solr Server Initialized");
|
||||
}
|
||||
catch (MalformedURLException e)
|
||||
{
|
||||
throw new SolrServerException(e);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
log.error(e.getMessage(), e);
|
||||
|
Reference in New Issue
Block a user