Authored by 胡古飞

fix

... ... @@ -185,11 +185,17 @@ public class SearchExplainerService {
queryMatchResult = queryMatchResult && isTokenMatched;
}
}
for(SearchFieldResult searchFieldResult : resultList){
searchFieldResult.setTokens(Arrays.asList(StringUtils.join(searchFieldResult.getTokens(), ";")));
}
map.put("code", "200");
map.put("message", "show skn tokens");
map.put("data", resultList);
map.put("searchTokens", searchTokens);
map.put("queryMatchResult", queryMatchResult);
logger.info("End to show skn tokens. skn={}, keyword={}, cost={}.", skn, keyword, System.currentTimeMillis() - start);
return map;
... ... @@ -206,7 +212,7 @@ public class SearchExplainerService {
String fieldValueStr = fieldValue != null ? fieldValue.toString() : null;
List<String> tokens = getAnalyzerResult(fieldDesc, fieldValueStr);
searchFieldResult.setFieldValue(fieldValueStr);
searchFieldResult.setTokens(Arrays.asList(StringUtils.join(tokens, ";")));
searchFieldResult.setTokens(tokens);
return searchFieldResult;
}
... ...