Skip to content

Commit

Permalink
Improve timestamp search user help of database storage
Browse files Browse the repository at this point in the history
  • Loading branch information
jacodg committed Dec 23, 2024
1 parent b6e866d commit c6eed0d
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,12 @@ public String getUserHelp(String column) {
}
if (isTimestamp(column)) {
userHelp = userHelp
+ " When the search value only complies with the beginning of pattern "
+ MetadataExtractor.DATE_TIME_PATTERN + ", it will be supplemented with the end of "
+ MetadataExtractor.DATE_TIME_RANGE_END_SUFFIX + " or "
+ MetadataExtractor.DATE_TIME_RANGE_START_SUFFIX + " when it's the beginning of a range.";
+ " If the provided search value only matches the beginning portion of a timestamp (in the format '"
+ MetadataExtractor.DATE_TIME_PATTERN
+ "'), the system will autocomplete the missing information with the end of latest possible timestamp '"
+ MetadataExtractor.DATE_TIME_RANGE_END_SUFFIX
+ "'. In case of the first value of a range it is autocompleted with the end of '"
+ MetadataExtractor.DATE_TIME_RANGE_START_SUFFIX + "'.";
}
return userHelp + SearchUtil.getUserHelpRegex() + SearchUtil.getUserHelpNullAndEmpty();
}
Expand Down

0 comments on commit c6eed0d

Please sign in to comment.