Package org.dspace.discovery
Class SolrSearchCore
java.lang.Object
org.dspace.discovery.SolrSearchCore
Bean containing the SolrClient for the search core.
- Author:
- Kevin Van de Velde (kevin at atmire dot com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConfigurationServiceprotected HttpConnectionPoolServiceprotected IndexingServiceorg.apache.solr.client.solrj.SolrRequest.METHODDefault HTTP method to use for all Solr Requests (we prefer POST).protected org.apache.solr.client.solrj.SolrClientSolrServer for processing indexing events. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
indexingService
-
configurationService
-
httpConnectionPoolService
@Autowired @Named("solrHttpConnectionPoolService") protected HttpConnectionPoolService httpConnectionPoolService -
solr
protected org.apache.solr.client.solrj.SolrClient solrSolrServer for processing indexing events. -
REQUEST_METHOD
public org.apache.solr.client.solrj.SolrRequest.METHOD REQUEST_METHODDefault HTTP method to use for all Solr Requests (we prefer POST). This REQUEST_METHOD should be used in all Solr queries, e.g. solSearchCore.getSolr().query(myQuery, solrSearchCore.REQUEST_METHOD);
-
-
Constructor Details
-
SolrSearchCore
public SolrSearchCore()
-
-
Method Details
-
getSolr
public org.apache.solr.client.solrj.SolrClient getSolr()Get access to current SolrClient. If no current SolrClient exists, a new one is initialized, see initSolr().- Returns:
- SolrClient Solr client
-
initSolr
protected void initSolr()Initialize the solr search core
-