NazerkeBS commented on code in PR #990: URL: https://github.com/apache/solr/pull/990#discussion_r959718504
########## solr/core/src/java/org/apache/solr/update/DocumentBuilder.java: ########## @@ -161,14 +162,21 @@ public static Document toDocument( && !sfield.multiValued() && field.getValueCount() > 1 && !(sfield.getType() instanceof DenseVectorField)) { + + // Ensure we do not flood the logs with extremely long values + String fieldValue = field.getValue().toString(); + if (fieldValue.length() > MAX_VALUES_AS_STRING_LENGTH) { + fieldValue = fieldValue.substring(0, MAX_VALUES_AS_STRING_LENGTH - 4) + "...]"; Review Comment: Multivalue fields are represented in array []. When we truncate, we loose the closing bracket, so we have to append it. -- 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