|
@@ -148,7 +148,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 = jy.KeywordsProcessing(ikWords, IC.C.JYKeyMark)
|
|
|
+ in.KeyWords = jy.KeywordsProcessing(ikWords, in.KeyWords, IC.C.JYKeyMark)
|
|
|
}
|
|
|
}
|
|
|
searchWords = append(searchWords, in.KeyWords)
|
|
@@ -162,7 +162,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, jy.KeywordsProcessing(ikWords, IC.C.JYKeyMark))
|
|
|
+ addWords = append(addWords, jy.KeywordsProcessing(ikWords, awv, IC.C.JYKeyMark))
|
|
|
}
|
|
|
}
|
|
|
}
|