Package com.yahoo.vespa.model.search
Class IndexedSearchCluster
java.lang.Object
com.yahoo.config.model.producer.AbstractConfigProducer<AbstractSearchCluster>
com.yahoo.vespa.model.search.AbstractSearchCluster
com.yahoo.vespa.model.search.SearchCluster
com.yahoo.vespa.model.search.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
,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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class used to retrieve combined configuration from multiple document databases.Nested classes/interfaces inherited from class com.yahoo.vespa.model.search.AbstractSearchCluster
AbstractSearchCluster.IndexingMode, AbstractSearchCluster.SchemaSpec
-
Field Summary
Fields inherited from class com.yahoo.vespa.model.search.AbstractSearchCluster
clusterName, index
Fields inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
log
-
Constructor Summary
ConstructorDescriptionIndexedSearchCluster
(AbstractConfigProducer<SearchCluster> parent, String clusterName, int index) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSearcher
(SearchNode searcher) void
Create default config if not specified by user.protected void
deriveAllSchemas
(List<AbstractSearchCluster.SchemaSpec> localSearches, DeployState deployState) void
fillDocumentDBConfig
(String documentType, com.yahoo.vespa.config.search.core.ProtonConfig.Documentdb.Builder builder) void
getConfig
(com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Builder builder) void
getConfig
(com.yahoo.search.config.IndexInfoConfig.Builder builder) void
getConfig
(com.yahoo.vespa.config.search.AttributesConfig.Builder builder) void
getConfig
(com.yahoo.vespa.config.search.DispatchConfig.Builder builder) void
getConfig
(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder) void
getConfig
(com.yahoo.vespa.configdefinition.IlscriptsConfig.Builder builder) Returns the name of the docproc cluster running indexing for this search cluster.protected AbstractSearchCluster.IndexingMode
Returns the document selector that is able to resolve what documents are to be routed to this search cluster.int
int
getSearchNode
(int index) int
boolean
hasDocumentDB
(String name) final boolean
final boolean
void
setDispatchSpec
(DispatchSpec dispatchSpec) setIndexingChain
(DocprocChain chain) Sets the docproc chain that will be running indexing for this search cluster.void
setIndexingChainName
(String indexingChainName) void
setIndexingClusterName
(String name) Sets the name of the docproc cluster running indexing for this search cluster.void
setRoutingSelector
(String sel) void
setSearchableCopies
(int searchableCopies) void
setSearchCoverage
(SearchCoverage searchCoverage) void
toString()
Methods inherited from class com.yahoo.vespa.model.search.SearchCluster
addRankProfilesConfig, convertSummaryConfig, deriveSchemas
Methods inherited from class com.yahoo.vespa.model.search.AbstractSearchCluster
addDocumentNames, getClusterIndex, getClusterName, getDocumentNames, getIndexingModeName, getLocalSDS, getQueryTimeout, getVisibilityDelay, isStreaming, setClusterIndex, setQueryTimeout, setVisibilityDelay
Methods inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
addChild, addConfigId, addDescendantService, addUserConfig, cascadeConfig, dump, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getConfigId, getDescendantServices, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, remove, removeChild, setParent, setUserConfigs, stateIsHosted, validate
-
Constructor Details
-
IndexedSearchCluster
public IndexedSearchCluster(AbstractConfigProducer<SearchCluster> parent, String clusterName, int index)
-
-
Method Details
-
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
- Specified by:
getIndexingMode
in classAbstractSearchCluster
-
hasExplicitIndexingCluster
public final boolean hasExplicitIndexingCluster() -
hasExplicitIndexingChain
public final boolean hasExplicitIndexingChain() -
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, thegetIndexingServiceName()
method holds the actual indexing docproc chain object.- Returns:
- the name of the docproc cluster associated with this
-
getIndexingChainName
-
setIndexingChainName
-
setIndexingClusterName
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. SeegetIndexingClusterName()
for more detail.- Parameters:
name
- the name of the docproc cluster associated with this
-
getIndexingServiceName
-
setIndexingChain
Sets the docproc chain that will be running indexing for this search cluster. This is set by theContent
model during build.- Parameters:
chain
- the chain that is to run indexing for this cluster- Returns:
- this, to allow chaining
-
getRootDispatch
-
addSearcher
-
getSearchNodes
-
getSearchNodeCount
public int getSearchNodeCount() -
getSearchNode
-
setTuning
-
getTuning
-
fillDocumentDBConfig
public void fillDocumentDBConfig(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 interfacecom.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer
- Specified by:
getConfig
in classAbstractSearchCluster
-
setRoutingSelector
-
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 classSearchCluster
-
deriveAllSchemas
protected void deriveAllSchemas(List<AbstractSearchCluster.SchemaSpec> localSearches, DeployState deployState) - Specified by:
deriveAllSchemas
in classSearchCluster
-
getDocumentDbs
-
hasDocumentDB
-
setSearchCoverage
-
getSdConfig
- Specified by:
getSdConfig
in classSearchCluster
-
getConfig
public void getConfig(com.yahoo.search.config.IndexInfoConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.search.config.IndexInfoConfig.Producer
- Overrides:
getConfig
in classSearchCluster
-
getConfig
public void getConfig(com.yahoo.vespa.configdefinition.IlscriptsConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.vespa.configdefinition.IlscriptsConfig.Producer
- Overrides:
getConfig
in classSearchCluster
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder) - Overrides:
getConfig
in classSearchCluster
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder) - Overrides:
getConfig
in classSearchCluster
-
getSearchableCopies
public int getSearchableCopies() -
setSearchableCopies
public void setSearchableCopies(int searchableCopies) -
setDispatchSpec
-
getDispatchSpec
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.DispatchConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.vespa.config.search.DispatchConfig.Producer
-
getRowBits
public int getRowBits()- Specified by:
getRowBits
in classAbstractSearchCluster
-
toString
- Overrides:
toString
in classAbstractSearchCluster
-