|
@@ -893,7 +893,15 @@ func Utiltags(tag map[string]interface{}) string {
|
|
|
if QueryObjecct.Bool == nil {
|
|
|
QueryObjecct.Bool = &fqBoolObject
|
|
|
} else {
|
|
|
- QueryObjecct.Bool.Must = append(QueryObjecct.Bool.Must, &fqBoolObject)
|
|
|
+ if fqBoolObject.Must != nil {
|
|
|
+ QueryObjecct.Bool.Must = append(QueryObjecct.Bool.Must, fqBoolObject.Must...)
|
|
|
+ }
|
|
|
+ if fqBoolObject.Should != nil {
|
|
|
+ QueryObjecct.Bool.Should = append(QueryObjecct.Bool.Should, fqBoolObject.Should...)
|
|
|
+ }
|
|
|
+ if fqBoolObject.MustNot != nil {
|
|
|
+ QueryObjecct.Bool.MustNot = append(QueryObjecct.Bool.MustNot, fqBoolObject.MustNot...)
|
|
|
+ }
|
|
|
}
|
|
|
if len(torules.Should) > 0 {
|
|
|
QueryObjecct.Bool.Must = append(QueryObjecct.Bool.Must, map[string]interface{}{
|