Package com.yahoo.vespa.model.search
Class IndexedSearchCluster
java.lang.Object
com.yahoo.config.model.producer.AnyConfigProducer
com.yahoo.config.model.producer.TreeConfigProducer<AnyConfigProducer>
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.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:
-
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.SearchCluster
SearchCluster.IndexingMode
-
Field Summary
Fields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log
-
Constructor Summary
ConstructorDescriptionIndexedSearchCluster
(TreeConfigProducer<AnyConfigProducer> parent, String clusterName, int index, com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSearcher
(SearchNode searcher) void
Create default config if not specified by user.void
deriveFromSchemas
(DeployState deployState) Must be called after cluster is built, to derive schema configs.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.search.config.SchemaInfoConfig.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.DispatchNodesConfig.Builder builder) void
getConfig
(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder) void
getConfig
(com.yahoo.vespa.configdefinition.IlscriptsConfig.Builder builder) Returns the document databases contained in this clusterprotected SearchCluster.IndexingMode
Returns the document selector that is able to resolve what documents are to be routed to this search cluster.int
getSearchNode
(int index) int
boolean
hasDocumentDB
(String name) void
setRedundancy
(int redundancy) void
setRoutingSelector
(String selector) void
setSearchCoverage
(SearchCoverage searchCoverage) void
toString()
Methods inherited from class com.yahoo.vespa.model.search.SearchCluster
add, getClusterIndex, getClusterName, getDocumentNames, getIndexingModeName, getQueryTimeout, getVisibilityDelay, isStreaming, schemas, setClusterIndex, setQueryTimeout, setVisibilityDelay
Methods inherited from class com.yahoo.config.model.producer.TreeConfigProducer
addChild, addDescendantService, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getDescendantServices, removeChild, validate
Methods inherited from class com.yahoo.config.model.producer.AnyConfigProducer
addConfigId, addUserConfig, cascadeConfig, currentConfigId, findInheritedClassLoader, getConfigId, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, remove, setParent, setUserConfigs, stateIsHosted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.yahoo.vespa.model.ConfigProducer
dump
-
Constructor Details
-
IndexedSearchCluster
public IndexedSearchCluster(TreeConfigProducer<AnyConfigProducer> parent, String clusterName, int index, com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags)
-
-
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 classSearchCluster
-
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) -
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
-
deriveFromSchemas
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 classSearchCluster
-
getDocumentDbs
Description copied from class:SearchCluster
Returns the document databases contained in this cluster- Specified by:
getDocumentDbs
in classSearchCluster
-
hasDocumentDB
-
setSearchCoverage
-
getConfig
public void getConfig(com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer
-
getConfig
public void getConfig(com.yahoo.search.config.IndexInfoConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.search.config.IndexInfoConfig.Producer
-
getConfig
public void getConfig(com.yahoo.search.config.SchemaInfoConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.search.config.SchemaInfoConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.configdefinition.IlscriptsConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.vespa.configdefinition.IlscriptsConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder) - Specified by:
getConfig
in classSearchCluster
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder) - Specified by:
getConfig
in classSearchCluster
-
setRedundancy
public void setRedundancy(int redundancy) -
getConfig
public void getConfig(com.yahoo.vespa.config.search.DispatchNodesConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.vespa.config.search.DispatchNodesConfig.Producer
-
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 classSearchCluster
-
toString
- Overrides:
toString
in classSearchCluster
-