Class SolrIndexClientFactory

java.lang.Object
eu.dnetlib.app.directindex.solr.SolrIndexClientFactory

@Configuration public class SolrIndexClientFactory extends Object
  • Field Details

    • CHROOT_SEPARATOR

      public static final String CHROOT_SEPARATOR
      See Also:
    • solrUrls

      @Value("${dnet.directindex.solr.urls}") public String solrUrls
    • solrCollection

      @Value("${dnet.directindex.solr.collection}") public String solrCollection
    • solrClientType

      @Value("${dnet.directindex.solr.client}") public String solrClientType
    • solrZkChroot

      @Value("${dnet.directindex.solr.zk_chroot}") public String solrZkChroot
  • Constructor Details

    • SolrIndexClientFactory

      public SolrIndexClientFactory()
  • Method Details

    • solrClient

      @Bean public org.apache.solr.client.solrj.SolrClient solrClient() throws IOException
      Throws:
      IOException
    • solrIndexClient

      @Bean public SolrIndexClient solrIndexClient(org.apache.solr.client.solrj.SolrClient solrClient)
    • getLoadBalancedHttp1Client

      @Deprecated protected org.apache.solr.client.solrj.SolrClient getLoadBalancedHttp1Client(String urls, String coll)
      Deprecated.
    • getLoadBalancedHttp2Client

      protected org.apache.solr.client.solrj.SolrClient getLoadBalancedHttp2Client(String urls, String coll)
    • getZKCloudClient

      protected org.apache.solr.client.solrj.SolrClient getZKCloudClient(String urls, String coll, Optional<String> chroot) throws IOException
      Throws:
      IOException
    • getSimpleClient

      protected org.apache.solr.client.solrj.SolrClient getSimpleClient(String url, String coll)