noblepaul commented on code in PR #1215: URL: https://github.com/apache/solr/pull/1215#discussion_r1054986541
########## solr/core/src/java/org/apache/solr/update/SolrIndexSplitter.java: ########## @@ -765,18 +766,11 @@ static FixedBitSet[] split( return docSets; } - public static String getRouteKey(String idString) { - int idx = idString.indexOf(CompositeIdRouter.SEPARATOR); - if (idx <= 0) return null; - String part1 = idString.substring(0, idx); - int commaIdx = part1.indexOf(CompositeIdRouter.bitsSeparator); - if (commaIdx > 0 && commaIdx + 1 < part1.length()) { - char ch = part1.charAt(commaIdx + 1); - if (ch >= '0' && ch <= '9') { - part1 = part1.substring(0, commaIdx); - } + private static void checkRouterSupportsSplitKey(HashBasedRouter hashRouter, String splitKey) { Review Comment: the other one is PLAIN router. I don't think Split is possible for that -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org