This is an automated email from the ASF dual-hosted git repository. yangzhg pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new e9662e2861 [docs] fix HelpTopic for key words (#10276) e9662e2861 is described below commit e9662e28615d58114d9ae2a9b9e3e1544b28f905 Author: pengxiangyu <diablo...@163.com> AuthorDate: Thu Jun 23 12:42:49 2022 +0800 [docs] fix HelpTopic for key words (#10276) --- fe/fe-core/src/main/java/org/apache/doris/qe/HelpTopic.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/HelpTopic.java b/fe/fe-core/src/main/java/org/apache/doris/qe/HelpTopic.java index 85c24baf53..3ba7f5fb79 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/qe/HelpTopic.java +++ b/fe/fe-core/src/main/java/org/apache/doris/qe/HelpTopic.java @@ -89,7 +89,15 @@ public class HelpTopic implements HelpObjectIface { // Keyword String keyword = doc.getValue().get(KEYWORDS); if (!Strings.isNullOrEmpty(keyword)) { - this.keywords = Lists.newArrayList(Splitter.onPattern(",").trimResults().omitEmptyStrings().split(keyword)); + List<String> keywordTexts = Lists.newArrayList( + Splitter.onPattern("\n").trimResults().omitEmptyStrings().split(keyword)); + for (String keywordText : keywordTexts) { + if (keywordText.startsWith("```")) { + continue; + } + this.keywords.addAll(Lists.newArrayList( + Splitter.onPattern(",").trimResults().omitEmptyStrings().split(keywordText))); + } } // Category String category = doc.getValue().get(CATEGORY); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org