소스 검색

elsticutil

张金坤 8 년 전
부모
커밋
ee4b8ecd8e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {