package main type QueryObject struct { Query *BoolObject `json:"query,omitempty"` Source []string `json:"_source"` Size int `json:"size"` } type QueryObject1 struct { Query *BoolObject1 `json:"query,omitempty"` Source []string `json:"_source"` Size int `json:"size"` } type BoolObject struct { Bool *MMSMObject `json:"bool,omitempty"` } type BoolObject1 struct { Bool *MMSObject `json:"bool,omitempty"` } type MMSMObject struct { Must []interface{} `json:"must,omitempty"` MustNot []interface{} `json:"must_not,omitempty"` Should []interface{} `json:"should,omitempty"` MinSdMatch string `json:"minimum_should_match,omitempty"` } type MMSObject struct { Must []interface{} `json:"must,omitempty"` MustNot []interface{} `json:"must_not,omitempty"` Should []interface{} `json:"should,omitempty"` } type ShouldObject struct { MultiMatch *MultiMatch `json:"multi_match,omitempty"` } type MultiMatch struct { Query string `json:"query,omitempty"` Type string `json:"type,omitempty"` Fields []string `json:"fields,omitempty"` }