张金坤 8 gadi atpakaļ
vecāks
revīzija
ee4b8ecd8e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 {