|
@@ -337,7 +337,7 @@ func (k *KnowledgeService) RecommendAnswer(param *knowledgeclient.FindAnswerReq,
|
|
|
limit = recommendQuestionCount
|
|
|
}
|
|
|
//res := elastic.GetAllByNgram(Index, Type, query, "", "", searchField, 0, limit, 0, false)
|
|
|
- query := util.GetAnswerQueryStr(param.Question, robotEntId, limit, init.C.MinScore)
|
|
|
+ query := util.GetAnswerQueryStr(param.Question, robotEntId, limit, ki.C.MinScore)
|
|
|
logx.Info("query:", query)
|
|
|
res := ESV7.Get(ESV7Index, ESV7Type, query)
|
|
|
if res != nil && len(*res) > 0 {
|