fabriziofortino commented on code in PR #2271: URL: https://github.com/apache/jackrabbit-oak/pull/2271#discussion_r2078431875
########## oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/util/ElasticIndexUtils.java: ########## @@ -106,16 +106,25 @@ public static String fieldName(String propertyName) { public static String idFromPath(@NotNull String path) { byte[] pathBytes = path.getBytes(StandardCharsets.UTF_8); if (pathBytes.length > 512) { - try { - return new String(MessageDigest.getInstance("SHA-256").digest(pathBytes), - StandardCharsets.UTF_8); - } catch (NoSuchAlgorithmException e) { - throw new IllegalStateException(e); - } Review Comment: makes sense. Done -- 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: oak-dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org