|
@@ -3,6 +3,7 @@ package entity
|
|
|
import (
|
|
|
MC "app.yhyue.com/moapp/jybase/common"
|
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
|
+ "app.yhyue.com/moapp/jypkg/common/src/qfw/util/jy"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
IC "jyBXCore/rpc/init"
|
|
@@ -128,7 +129,7 @@ func (kws *KeyWordsSearch) GetSearchKeyWordsQueryStr(in *bxcore.SearchReq) (sear
|
|
|
if in.KeyWords != "" {
|
|
|
if in.SearchMode == 1 {
|
|
|
if ikWords := util.HttpEs(in.KeyWords, "ik_smart", IC.DB.Es.Addr); ikWords != "" {
|
|
|
- in.KeyWords = ikWords
|
|
|
+ in.KeyWords = jy.KeywordsProcessing(ikWords, IC.C.JYKeyMark)
|
|
|
}
|
|
|
}
|
|
|
searchWords = append(searchWords, in.KeyWords)
|
|
@@ -142,7 +143,7 @@ func (kws *KeyWordsSearch) GetSearchKeyWordsQueryStr(in *bxcore.SearchReq) (sear
|
|
|
for _, awv := range strings.Split(in.AdditionalWords, ",") {
|
|
|
if strings.TrimSpace(awv) != "" {
|
|
|
if ikWords := util.HttpEs(awv, "ik_smart", IC.DB.Es.Addr); ikWords != "" {
|
|
|
- addWords = append(addWords, ikWords)
|
|
|
+ addWords = append(addWords, jy.KeywordsProcessing(ikWords, IC.C.JYKeyMark))
|
|
|
}
|
|
|
}
|
|
|
}
|