Class SolrClusterComponent

java.lang.Object
com.lucidworks.cloud.api.solr.SolrClusterComponent
All Implemented Interfaces:
CollectionComponent.CollectionChangeAware

@EnableConfigurationProperties(ConfigurationComponent.class) public class SolrClusterComponent extends Object implements CollectionComponent.CollectionChangeAware
Provides access to the Solr servers associated with a given collectionId.
  • Constructor Details

  • Method Details

    • createSolrClientForCluster

      protected org.apache.solr.client.solrj.impl.CloudSolrClient createSolrClientForCluster(com.lucidworks.apollo.common.models.SearchCluster searchCluster)
    • getSolrClient

      public org.apache.solr.client.solrj.SolrClient getSolrClient(String collectionId)
    • getSolrServer

      @Deprecated public org.apache.solr.client.solrj.SolrClient getSolrServer(String collectionId)
      Deprecated.
      Exists only for javascript back-compat reasons, see APOLLO-29567
    • getCloudSolrClient

      public org.apache.solr.client.solrj.impl.CloudSolrClient getCloudSolrClient(String cluster)
    • getBufferingSolrServer

      public BufferingSolrServer getBufferingSolrServer(String collectionId)
    • getBufferingSolrServer

      public BufferingSolrServer getBufferingSolrServer(String collectionId, Integer bufferSize, Long flushInterval)
    • getCollection

      public com.lucidworks.apollo.common.models.Collection getCollection(String collectionId)
    • getCommitWithin

      public int getCommitWithin(String collectionId)
    • getSearchCluster

      public com.lucidworks.apollo.common.models.SearchCluster getSearchCluster(String collectionId)
    • flushBuffers

      public void flushBuffers()
    • shutdown

      @PreDestroy public void shutdown()
    • getDocumentAssignmentStrategy

      public DocumentAssignmentStrategy getDocumentAssignmentStrategy(String collectionId)
    • getCurator

      public org.apache.curator.framework.CuratorFramework getCurator(com.lucidworks.apollo.common.models.SearchCluster searchCluster)
    • onCollectionRemoved

      public void onCollectionRemoved(String collectionId)
      Specified by:
      onCollectionRemoved in interface CollectionComponent.CollectionChangeAware
    • onCollectionAdded

      public void onCollectionAdded(String collectionId)
      Specified by:
      onCollectionAdded in interface CollectionComponent.CollectionChangeAware
    • onCollectionUpdated

      public void onCollectionUpdated(String collectionId)
      Specified by:
      onCollectionUpdated in interface CollectionComponent.CollectionChangeAware
    • invalidateCachedDocumentAssignmentStrategy

      protected void invalidateCachedDocumentAssignmentStrategy(String collectionId)