Class ContentSearchCluster

All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer, com.yahoo.vespa.config.search.core.ProtonConfig.Producer, com.yahoo.vespa.config.search.DispatchConfig.Producer, com.yahoo.vespa.config.search.DispatchNodesConfig.Producer, ConfigProducer, Redundancy.Provider, Serializable

public class ContentSearchCluster extends TreeConfigProducer<AnyConfigProducer> implements com.yahoo.vespa.config.search.core.ProtonConfig.Producer, com.yahoo.vespa.config.search.DispatchNodesConfig.Producer, com.yahoo.vespa.config.search.DispatchConfig.Producer, Redundancy.Provider
Encapsulates the various options for search in a content model. Wraps a search cluster from com.yahoo.vespa.model.search.
See Also:
  • Method Details

    • setVisibilityDelay

      public void setVisibilityDelay(double delay)
    • isStreaming

      public Boolean isStreaming()
      Returns whether the schemas in this cluster use streaming mode.
      Returns:
      True if this cluster only has schemas with streaming mode, False if it only has schemas with indexing, null if it has both or none.
    • getSearchNodes

      public List<SearchNode> getSearchNodes()
    • addSearchNode

      public void addSearchNode(DeployState deployState, ContentNode node, StorageGroup parentGroup, ModelElement element)
    • setTuning

      public void setTuning(Tuning tuning)
    • usesHierarchicDistribution

      public boolean usesHierarchicDistribution()
    • handleRedundancy

      public void handleRedundancy(Redundancy redundancy)
    • getStreamingClusters

      public List<StreamingSearchCluster> getStreamingClusters()
    • getDocumentTypesWithStreamingCluster

      public List<NewDocumentType> getDocumentTypesWithStreamingCluster()
    • getDocumentTypesWithIndexedCluster

      public List<NewDocumentType> getDocumentTypesWithIndexedCluster()
    • getDocumentTypesWithStoreOnly

      public List<NewDocumentType> getDocumentTypesWithStoreOnly()
    • getConfig

      public void getConfig(com.yahoo.vespa.config.search.core.ProtonConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.vespa.config.search.core.ProtonConfig.Producer
    • getConfig

      public void getConfig(com.yahoo.vespa.config.search.DispatchNodesConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.vespa.config.search.DispatchNodesConfig.Producer
    • getConfig

      public void getConfig(com.yahoo.vespa.config.search.DispatchConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.vespa.config.search.DispatchConfig.Producer
    • getClusters

      public Map<String,SearchCluster> getClusters()
    • getIndexed

      public IndexedSearchCluster getIndexed()
    • hasIndexedCluster

      public boolean hasIndexedCluster()
    • getIndexingDocproc

      public IndexingDocproc getIndexingDocproc()
    • getClusterName

      public String getClusterName()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • redundancy

      public Redundancy redundancy()
      Specified by:
      redundancy in interface Redundancy.Provider