mirror of https://github.com/apache/lucene.git
SOLR-13399: fix splitByPrefix default to be false
This commit is contained in:
parent
e59f41b671
commit
2e5c554fea
|
@ -209,7 +209,7 @@ public class SplitShardCmd implements OverseerCollectionMessageHandler.Cmd {
|
||||||
ShardHandler shardHandler = ocmh.shardHandlerFactory.getShardHandler(ocmh.overseer.getCoreContainer().getUpdateShardHandler().getDefaultHttpClient());
|
ShardHandler shardHandler = ocmh.shardHandlerFactory.getShardHandler(ocmh.overseer.getCoreContainer().getUpdateShardHandler().getDefaultHttpClient());
|
||||||
|
|
||||||
|
|
||||||
if (message.getBool(CommonAdminParams.SPLIT_BY_PREFIX, true)) {
|
if (message.getBool(CommonAdminParams.SPLIT_BY_PREFIX, false)) {
|
||||||
t = timings.sub("getRanges");
|
t = timings.sub("getRanges");
|
||||||
|
|
||||||
ModifiableSolrParams params = new ModifiableSolrParams();
|
ModifiableSolrParams params = new ModifiableSolrParams();
|
||||||
|
|
|
@ -152,6 +152,7 @@ import static org.apache.solr.common.params.CommonAdminParams.NUM_SUB_SHARDS;
|
||||||
import static org.apache.solr.common.params.CommonAdminParams.SPLIT_FUZZ;
|
import static org.apache.solr.common.params.CommonAdminParams.SPLIT_FUZZ;
|
||||||
import static org.apache.solr.common.params.CommonAdminParams.SPLIT_METHOD;
|
import static org.apache.solr.common.params.CommonAdminParams.SPLIT_METHOD;
|
||||||
import static org.apache.solr.common.params.CommonAdminParams.WAIT_FOR_FINAL_STATE;
|
import static org.apache.solr.common.params.CommonAdminParams.WAIT_FOR_FINAL_STATE;
|
||||||
|
import static org.apache.solr.common.params.CommonAdminParams.SPLIT_BY_PREFIX;
|
||||||
import static org.apache.solr.common.params.CommonParams.NAME;
|
import static org.apache.solr.common.params.CommonParams.NAME;
|
||||||
import static org.apache.solr.common.params.CommonParams.TIMING;
|
import static org.apache.solr.common.params.CommonParams.TIMING;
|
||||||
import static org.apache.solr.common.params.CommonParams.VALUE_LONG;
|
import static org.apache.solr.common.params.CommonParams.VALUE_LONG;
|
||||||
|
@ -775,6 +776,7 @@ public class CollectionsHandler extends RequestHandlerBase implements Permission
|
||||||
SPLIT_METHOD,
|
SPLIT_METHOD,
|
||||||
NUM_SUB_SHARDS,
|
NUM_SUB_SHARDS,
|
||||||
SPLIT_FUZZ,
|
SPLIT_FUZZ,
|
||||||
|
SPLIT_BY_PREFIX,
|
||||||
FOLLOW_ALIASES);
|
FOLLOW_ALIASES);
|
||||||
return copyPropertiesWithPrefix(req.getParams(), map, COLL_PROP_PREFIX);
|
return copyPropertiesWithPrefix(req.getParams(), map, COLL_PROP_PREFIX);
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue