wangshan 2 жил өмнө
parent
commit
94b6a08227

+ 1 - 1
jyBXCore/rpc/entity/search.go

@@ -141,7 +141,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, strings.Split(ikWords, IC.C.JYKeyMark)...)
+						addWords = append(addWords, ikWords)
 					}
 				}
 			}

+ 1 - 0
jyBXCore/rpc/model/es/search.go

@@ -60,6 +60,7 @@ func GetSearchQuery(in *bxcore.SearchReq, mustQuery string) (qstr string) {
 			wordsMusts = append(wordsMusts, keyWordsMusts...)
 		}
 	}
+	//附加词
 	if in.AdditionalWords != "" {
 		//多组附加词,每组间,号隔开。每组内如果关键词中间有空格,自动分词
 		var (