Class SolrIndexClientFactory

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

@Component 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

    • getClient

      public SolrIndexClient getClient()
    • 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)
    • getSimpleClient

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