张金坤 8 年之前
父節點
當前提交
3b357d570d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/src/qfw/util/elastic/elasticutil.go

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

@@ -914,7 +914,7 @@ const (
 	HL           = `"highlight": {"pre_tags": [""],"post_tags": [""],"fields": {%s}}`
 	highlightStr = `%s: {"fragment_size": %d,"number_of_fragments": 1}`
 
-	FilterQuery_New  = `{"query":{"bool":{"must": [%s],"should":[%s%s]}}}`
+	FilterQuery_New  = `{"query":{"bool":{"must": [%s%s%s],"should":[]}}}`
 	MatchQueryString = `{"match": {%s: { "query":"%s", "operator": "and"}}}`
 	HL_New           = `"highlight": {"pre_tags": ["<HL>"],"post_tags": ["<HL>"],"fields": {%s}}`
 )