Class IndexedSearchCluster

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.config.search.DispatchConfig.Producer, com.yahoo.vespa.config.search.DispatchNodesConfig.Producer, com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer, ConfigProducer, Serializable

public class IndexedSearchCluster extends SearchCluster implements com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer, com.yahoo.search.config.IndexInfoConfig.Producer, com.yahoo.search.config.SchemaInfoConfig.Producer, com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer, com.yahoo.vespa.config.search.DispatchConfig.Producer, com.yahoo.vespa.config.search.DispatchNodesConfig.Producer, com.yahoo.config.ConfigInstance.Producer
Author:
baldersheim
See Also:
  • Constructor Details

  • Method Details

    • getRoutingSelector

      public String getRoutingSelector()
      Returns the document selector that is able to resolve what documents are to be routed to this search cluster. This string uses the document selector language as defined in the "document" module.
      Returns:
      the document selector
    • getIndexingMode

      protected SearchCluster.IndexingMode getIndexingMode()
      Specified by:
      getIndexingMode in class SearchCluster
    • hasExplicitIndexingCluster

      public final boolean hasExplicitIndexingCluster()
    • hasExplicitIndexingChain

      public final boolean hasExplicitIndexingChain()
    • getIndexingClusterName

      public String getIndexingClusterName()
      Returns the name of the docproc cluster running indexing for this search cluster. This is derived from the services file on initialization, this can NOT be used at runtime to determine indexing chain. When initialization is done, the getIndexingServiceName() method holds the actual indexing docproc chain object.
      Returns:
      the name of the docproc cluster associated with this
    • getIndexingChainName

      public String getIndexingChainName()
    • setIndexingChainName

      public void setIndexingChainName(String indexingChainName)
    • setIndexingClusterName

      public void setIndexingClusterName(String name)
      Sets the name of the docproc cluster running indexing for this search cluster. This is for initial configuration, and will not reflect the actual indexing chain. See getIndexingClusterName() for more detail.
      Parameters:
      name - the name of the docproc cluster associated with this
    • getIndexingServiceName

      public String getIndexingServiceName()
    • setIndexingChain

      public SearchCluster setIndexingChain(DocprocChain chain)
      Sets the docproc chain that will be running indexing for this search cluster. This is set by the Content model during build.
      Parameters:
      chain - the chain that is to run indexing for this cluster
      Returns:
      this, to allow chaining
    • getRootDispatch

      public DispatchGroup getRootDispatch()
    • addSearcher

      public void addSearcher(SearchNode searcher)
    • getSearchNodes

      public List<SearchNode> getSearchNodes()
    • getSearchNodeCount

      public int getSearchNodeCount()
    • getSearchNode

      public SearchNode getSearchNode(int index)
    • setTuning

      public void setTuning(Tuning tuning)
    • getTuning

      public Tuning getTuning()
    • fillDocumentDBConfig

      public void fillDocumentDBConfig(String documentType, com.yahoo.vespa.config.search.core.ProtonConfig.Documentdb.Builder builder)
    • setRoutingSelector

      public void setRoutingSelector(String selector)
    • defaultDocumentsConfig

      public void defaultDocumentsConfig()
      Create default config if not specified by user. Accept empty strings as user config - it means that all feeds/documents are accepted.
      Specified by:
      defaultDocumentsConfig in class SearchCluster
    • deriveFromSchemas

      public void deriveFromSchemas(DeployState deployState)
      Description copied from class: SearchCluster
      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.
      Specified by:
      deriveFromSchemas in class SearchCluster
    • getDocumentDbs

      public List<DocumentDatabase> getDocumentDbs()
    • hasDocumentDB

      public boolean hasDocumentDB(String name)
    • setSearchCoverage

      public void setSearchCoverage(SearchCoverage searchCoverage)
    • getConfig

      public void getConfig(com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer
    • getConfig

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

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

      public void getConfig(com.yahoo.vespa.configdefinition.IlscriptsConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer
    • getConfig

      public void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder)
      Specified by:
      getConfig in class SearchCluster
    • getConfig

      public void getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder)
      Specified by:
      getConfig in class SearchCluster
    • getSearchableCopies

      public int getSearchableCopies()
    • setSearchableCopies

      public void setSearchableCopies(int searchableCopies)
    • getRedundancy

      public int getRedundancy()
    • setRedundancy

      public void setRedundancy(int redundancy)
    • setDispatchSpec

      public void setDispatchSpec(DispatchSpec dispatchSpec)
    • getDispatchSpec

      public DispatchSpec getDispatchSpec()
    • 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
    • getRowBits

      public int getRowBits()
      Specified by:
      getRowBits in class SearchCluster
    • toString

      public String toString()
      Overrides:
      toString in class SearchCluster