steffenvan commented on code in PR #1353:
URL: https://github.com/apache/jackrabbit-oak/pull/1353#discussion_r1521535086
##########
oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/editor/FulltextDocumentMaker.java:
##########
@@ -336,6 +339,37 @@ private boolean indexProperty(String path,
return dirty;
}
+ static String getValueAsTruncatedString(Object val) {
+ String value = val.toString();
+ boolean isArray = value.startsWith("[") && value.endsWith("]");
+ return value.length() <= LOG_TRUNCATION_LENGTH ? value
Review Comment:
I've modified the function now - should be more clear.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]