Selaa lähdekoodia

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

duxin 2 vuotta sitten
vanhempi
commit
5f8ed8b8ee
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      rpc/knowledge/util/elasticsearch_dsl.go

+ 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 {