|
@@ -627,12 +627,14 @@ func SearchList(operator Operator) (int64, *[]map[string]interface{}, int64) {
|
|
|
subtype = append(subtype, gconv.String(v1))
|
|
|
}
|
|
|
}
|
|
|
- if len(topType) > 0 {
|
|
|
- filterArr = append(filterArr, fmt.Sprintf(`{"match":{"toptype":"%s"}}`, strings.Join(topType, `","`)))
|
|
|
- }
|
|
|
- //信息类型二级
|
|
|
- if len(subtype) > 0 {
|
|
|
- filterArr = append(filterArr, fmt.Sprintf(`{"terms":{"subtype":["%s"]}}`, strings.Join(subtype, `","`)))
|
|
|
+ if len(topType) == 1 {
|
|
|
+ if len(topType) > 0 {
|
|
|
+ filterArr = append(filterArr, fmt.Sprintf(`{"match":{"toptype":"%s"}}`, strings.Join(topType, `","`)))
|
|
|
+ }
|
|
|
+ //信息类型二级
|
|
|
+ if len(subtype) > 0 {
|
|
|
+ filterArr = append(filterArr, fmt.Sprintf(`{"terms":{"subtype":["%s"]}}`, strings.Join(subtype, `","`)))
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
//私有标签1
|