From 56e8fbe7eba0b4c24d9b0fc9245bfb28597f4946 Mon Sep 17 00:00:00 2001 From: Gregory Seaman Date: Fri, 21 Oct 2016 10:39:27 -0400 Subject: [PATCH] Do not set upper bound for R&R cluster size --- .../retrieve_and_rank/v1/model/SolrClusterOptions.java | 2 +- .../retrieve_and_rank/v1/model/SolrClusterResizeRequest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/retrieve-and-rank/src/main/java/com/ibm/watson/developer_cloud/retrieve_and_rank/v1/model/SolrClusterOptions.java b/retrieve-and-rank/src/main/java/com/ibm/watson/developer_cloud/retrieve_and_rank/v1/model/SolrClusterOptions.java index 49c2d51af2c..7ab5af9736a 100644 --- a/retrieve-and-rank/src/main/java/com/ibm/watson/developer_cloud/retrieve_and_rank/v1/model/SolrClusterOptions.java +++ b/retrieve-and-rank/src/main/java/com/ibm/watson/developer_cloud/retrieve_and_rank/v1/model/SolrClusterOptions.java @@ -40,7 +40,7 @@ public SolrClusterOptions(String clusterName, Integer clusterSize) { if (clusterSize == null) { this.clusterSize = FREE_CLUSTER_SIZE; } else { - Validator.isTrue((clusterSize > 0) && (clusterSize < 8), "clusterSize cannot be lower than 0 or greater than 7"); + Validator.isTrue((clusterSize > 0), "clusterSize cannot be lower than 0"); this.clusterSize = clusterSize.toString(); } } diff --git a/retrieve-and-rank/src/main/java/com/ibm/watson/developer_cloud/retrieve_and_rank/v1/model/SolrClusterResizeRequest.java b/retrieve-and-rank/src/main/java/com/ibm/watson/developer_cloud/retrieve_and_rank/v1/model/SolrClusterResizeRequest.java index 530ad569ef8..9b817307324 100644 --- a/retrieve-and-rank/src/main/java/com/ibm/watson/developer_cloud/retrieve_and_rank/v1/model/SolrClusterResizeRequest.java +++ b/retrieve-and-rank/src/main/java/com/ibm/watson/developer_cloud/retrieve_and_rank/v1/model/SolrClusterResizeRequest.java @@ -30,7 +30,7 @@ public class SolrClusterResizeRequest { * @param clusterSize the desired cluster size */ public SolrClusterResizeRequest(final int clusterSize) { - Validator.isTrue((clusterSize > 0) && (clusterSize < 8), "clusterSize cannot be lower than 0 or greater than 7"); + Validator.isTrue((clusterSize > 0), "clusterSize cannot be lower than 0"); this.clusterSize = clusterSize; }