Class IndexedSearchCluster

  • All Implemented Interfaces:
    com.yahoo.config.ConfigInstance.Producer, com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer, com.yahoo.search.config.IndexInfoConfig.Producer, com.yahoo.vespa.config.search.DispatchConfig.Producer, com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer, ConfigProducer, java.io.Serializable

    public class IndexedSearchCluster
    extends SearchCluster
    implements com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer, com.yahoo.search.config.IndexInfoConfig.Producer, com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer, com.yahoo.vespa.config.search.DispatchConfig.Producer
    Author:
    baldersheim
    See Also:
    Serialized Form
    • Method Detail

      • getRoutingSelector

        public java.lang.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.
      • hasExplicitIndexingCluster

        public final boolean hasExplicitIndexingCluster()
      • hasExplicitIndexingChain

        public final boolean hasExplicitIndexingChain()
      • getIndexingClusterName

        public java.lang.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 java.lang.String getIndexingChainName()
      • setIndexingChainName

        public void setIndexingChainName​(java.lang.String indexingChainName)
      • setIndexingClusterName

        public void setIndexingClusterName​(java.lang.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 java.lang.String getIndexingServiceName()
      • setIndexingChain

        public AbstractSearchCluster 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.
      • addSearcher

        public void addSearcher​(SearchNode searcher)
      • getSearchNodes

        public java.util.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​(java.lang.String documentType,
                                         com.yahoo.vespa.config.search.core.ProtonConfig.Documentdb.Builder builder)
      • getConfig

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

        public void setRoutingSelector​(java.lang.String sel)
      • 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
      • hasDocumentDB

        public boolean hasDocumentDB​(java.lang.String name)
      • setSearchCoverage

        public void setSearchCoverage​(SearchCoverage searchCoverage)
      • getConfig

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

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

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

        public void getConfig​(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder)
        Overrides:
        getConfig in class SearchCluster
      • setMaxNodesDownPerFixedRow

        public void setMaxNodesDownPerFixedRow​(int value)
      • getSearchableCopies

        public int getSearchableCopies()
      • setSearchableCopies

        public void setSearchableCopies​(int searchableCopies)
      • setDispatchSpec

        public void setDispatchSpec​(DispatchSpec dispatchSpec)
      • getConfig

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