Commit 1bf57df1 by 王明范

增加从配置文件中读部分词å

parent 87723803
......@@ -38,7 +38,7 @@ public class QueryPlanHelper {
private QueryPlanHelper() {
queryPlanFile = ConfigUtil.getString("queryPlan.cachePath", "");
LOG.info("debugLog queryPlanFile path is " + queryPlanFile);
client = SqpDubboClient.getProdImpl();
loadQueryPlanFromFile();
......
......@@ -31,6 +31,7 @@ public class WordHelper {
*/
public static Set<String> loadSpecialWords() {
String specialWordPath = ConfigUtil.getString(specialWordFile);
LOG.info("debugLog specialWordFile path is " + specialWordPath);
Set<String> words = new HashSet<>();
if (StringUtils.isNotBlank(specialWordPath)) {
List<String> lines = FileUtils.readLines(specialWordPath);
......@@ -51,6 +52,7 @@ public class WordHelper {
*/
public static Set<Set<String>> loadSynonymTags() {
String synonymTagPath = ConfigUtil.getString(synonymTagFile);
LOG.info("debugLog synonymTagFile path is " + synonymTagPath);
Set<Set<String>> synonyms = new HashSet<>();
if (StringUtils.isNotBlank(synonymTagPath)) {
List<String> lines = FileUtils.readLines(synonymTagPath);
......
......@@ -392,9 +392,6 @@ public class SuggestTask {
}
if (tagSet.size() > 0) {
String tags = String.join(",", tagSet);
if ("lv女包".equals(word)) {
log.info("debugLog keyword tag:" + tags);
}
suggestInfo.setSuggestTags(tags);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment