Class ContentSearchCluster

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

public class ContentSearchCluster extends TreeConfigProducer<AnyConfigProducer> implements com.yahoo.vespa.config.search.core.ProtonConfig.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.
    • hasStreaming

      public boolean hasStreaming()
    • hasIndexed

      public boolean hasIndexed()
    • 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)
    • 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)
    • getConfig

      public void getConfig(com.yahoo.vespa.config.search.DispatchConfig.Builder builder)
    • getSearchCluster

      public IndexedSearchCluster getSearchCluster()
    • hasSearchCluster

      public boolean hasSearchCluster()
    • 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