Browse Source

elsticutil

张金坤 8 năm trước cách đây
mục cha
commit
ee4b8ecd8e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      common/src/qfw/util/elastic/elasticutil.go

+ 1 - 1
common/src/qfw/util/elastic/elasticutil.go

@@ -987,7 +987,7 @@ func GetByNgramOther(index, itype string, query interface{}, mustquery, findfiel
 func GetByNgramAll(index, itype string, query interface{}, mustquery, findfields, order, fields string, start, limit int, highlight bool, filtermode bool) *[]map[string]interface{} {
 	defer util.Catch()
 	qstr := ""
-	if mustquery != "" {
+	if mustquery != "" && filtermode {
 		qstr = GetNgramQuery(query, "", findfields)
 		qstr = fmt.Sprintf(FilterQuery, mustquery, qstr[1:])
 	} else {