|
@@ -253,8 +253,8 @@ func (k *KnowledgeService) RecommendAnswer(param *knowledgeclient.FindAnswerReq,
|
|
|
if keyWords == "" {
|
|
|
keyWords = param.Question
|
|
|
}
|
|
|
- logx.Info("entId:", SE.Decode4Hex(param.RobotEntId))
|
|
|
- var query = util.DSL4SearchByKwsOrid(keyWords, SE.Decode4Hex(param.RobotEntId))
|
|
|
+ //logx.Info("entId:", SE.Decode4Hex(param.RobotEntId))
|
|
|
+ var query = util.DSL4SearchByKwsOrid(keyWords, param.RobotEntId)
|
|
|
res := elastic.GetAllByNgram(Index, Type, query, "", "", searchField, 0, 3, 0, false)
|
|
|
if res != nil && len(*res) > 0 {
|
|
|
for _, val := range *res {
|