修改了elastic.go中的查询条件,优化了基础指标的查询逻辑。现在,只有当edbType大于0时,才会添加EdbType的term查询条件,从而提高了查询的精确度和效率。
@@ -258,7 +258,7 @@ func SearchEdbInfoData(indexName, keywordStr string, from, size, filterSource, s
}
// 指标类型:0-基础+计算;1-基础指标;2-计算指标
- if edbType >= 0 {
+ if edbType > 0 {
mustMap = append(mustMap, map[string]interface{}{
"term": map[string]interface{}{
"EdbType": edbType,