Class SearchCluster

All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer, com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer, com.yahoo.search.config.IndexInfoConfig.Producer, com.yahoo.search.config.SchemaInfoConfig.Producer, com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer, ConfigProducer, Serializable
Direct Known Subclasses:
IndexedSearchCluster, StreamingSearchCluster

public abstract class SearchCluster extends AbstractConfigProducer<SearchCluster> implements com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer, com.yahoo.search.config.IndexInfoConfig.Producer, com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer, com.yahoo.search.config.SchemaInfoConfig.Producer
Represents a search cluster.
Author:
arnej27959
See Also:
  • Constructor Details

  • Method Details

    • add

      public void add(SchemaInfo schema)
    • schemas

      public Map<String,SchemaInfo> schemas()
      Returns the schemas that should be active in this cluster. Note: These are added during processing.
    • deriveFromSchemas

      public abstract void deriveFromSchemas(DeployState deployState)
      Must be called after cluster is built, to derive schema configs. Derives the schemas from the application package. Also stores the document names contained in the schemas.
    • getDocumentNames

      public List<String> getDocumentNames()
      Returns a list of the document type names used in this search cluster
    • getClusterName

      public String getClusterName()
    • getIndexingModeName

      public final String getIndexingModeName()
    • isStreaming

      public final boolean isStreaming()
    • setQueryTimeout

      public final void setQueryTimeout(Double to)
    • setVisibilityDelay

      public final void setVisibilityDelay(double delay)
    • getIndexingMode

      protected abstract SearchCluster.IndexingMode getIndexingMode()
    • getVisibilityDelay

      public final Double getVisibilityDelay()
    • getQueryTimeout

      public final Double getQueryTimeout()
    • getRowBits

      public abstract int getRowBits()
    • setClusterIndex

      public final void setClusterIndex(int index)
    • getClusterIndex

      public final int getClusterIndex()
    • defaultDocumentsConfig

      public abstract void defaultDocumentsConfig()
    • getConfig

      public abstract void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder)
    • getConfig

      public abstract void getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder)
    • toString

      public String toString()
      Overrides:
      toString in class Object