aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-03-13 11:22:58 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2024-03-13 16:16:31 +0100
commit4e1726d12d155c5d64266b0103828f20cd81ec3a (patch)
tree48067e52d021dba92ccb47fc7065da4b7577c0ab
parent522d0e537cdee4fe32b6f1414b55b4fbecc0c048 (diff)
No limitation for search clusters any more.
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java b/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java
index a8605ab1597..0d9935af43d 100644
--- a/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java
+++ b/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java
@@ -136,13 +136,13 @@ public class ClusterSearcher extends Searcher {
SummaryParameters docSumParams,
DocumentdbInfoConfig documentdbInfoConfig,
SchemaInfo schemaInfo,
- ComponentRegistry<Dispatcher> dispatchers) {
+ ComponentRegistry<Dispatcher> dispatchers)
+ {
ClusterParams clusterParams = makeClusterParams(searchclusterIndex);
ComponentId dispatcherComponentId = new ComponentId("dispatcher." + searchClusterName);
Dispatcher dispatcher = dispatchers.getComponent(dispatcherComponentId);
if (dispatcher == null)
- throw new IllegalArgumentException("Configuration error: No dispatcher " + dispatcherComponentId +
- " is configured");
+ throw new IllegalArgumentException("Configuration error: No dispatcher " + dispatcherComponentId + " is configured");
return new IndexedBackend(serverId, dispatcher, docSumParams, clusterParams, documentdbInfoConfig, schemaInfo);
}
@@ -152,10 +152,8 @@ public class ClusterSearcher extends Searcher {
SummaryParameters docSumParams,
DocumentdbInfoConfig documentdbInfoConfig,
SchemaInfo schemaInfo,
- VespaDocumentAccess access) {
- if (searchClusterConfig.searchdef().size() != 1)
- throw new IllegalArgumentException("Streaming search clusters can only contain a single schema but got " +
- searchClusterConfig.searchdef());
+ VespaDocumentAccess access)
+ {
ClusterParams clusterParams = makeClusterParams(searchclusterIndex);
StreamingBackend searcher = new StreamingBackend(access);
searcher.setSearchClusterName(searchClusterConfig.rankprofiles_configid());