Class 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 Detail

      • 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);
    • Constructor Detail

      • SolrSearchCore

        public SolrSearchCore()
    • Method Detail

      • 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