Package org.dspace.discovery
Class SolrSearchCore
- java.lang.Object
-
- org.dspace.discovery.SolrSearchCore
-
public class SolrSearchCore extends Object
Bean containing the SolrClient for the search core.- Author:
- Kevin Van de Velde (kevin at atmire dot com)
-
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationServiceconfigurationServiceprotected HttpConnectionPoolServicehttpConnectionPoolServiceprotected IndexingServiceindexingServiceorg.apache.solr.client.solrj.SolrRequest.METHODREQUEST_METHODDefault HTTP method to use for all Solr Requests (we prefer POST).protected org.apache.solr.client.solrj.SolrClientsolrSolrServer for processing indexing events.
-
Constructor Summary
Constructors Constructor Description SolrSearchCore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.solr.client.solrj.SolrClientgetSolr()Get access to current SolrClient.protected voidinitSolr()Initialize the solr search core
-
-
-
Field Detail
-
indexingService
@Autowired protected IndexingService indexingService
-
configurationService
@Autowired protected ConfigurationService configurationService
-
httpConnectionPoolService
@Autowired @Named("solrHttpConnectionPoolService") protected HttpConnectionPoolService httpConnectionPoolService
-
solr
protected org.apache.solr.client.solrj.SolrClient solr
SolrServer for processing indexing events.
-
REQUEST_METHOD
public org.apache.solr.client.solrj.SolrRequest.METHOD REQUEST_METHOD
Default 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);
-
-