Эх сурвалжийг харах

Merge branch 'dev/v1.0.3_rjj' of SocialPlatform/knowledgeBase into feature/v1.0.3

duxin 2 жил өмнө
parent
commit
5f8ed8b8ee

+ 1 - 1
rpc/knowledge/util/elasticsearch_dsl.go

@@ -19,7 +19,7 @@ func DSL4SmartResponse(question string, entId string, msgType int, addr, index,
 	if len(hanlpCutWords) == 0 {
 		hanlpCutWords = append(hanlpCutWords, question)
 	}
-	question = strings.Join(hanlpCutWords, "")
+	question = strings.Join(hanlpCutWords, " ")
 	lenQuestion := len([]rune(question))
 	//logx.Info("lenQuestion", lenQuestion)
 	if lenQuestion >= 2 {