package main type QueryObject struct { Must []interface{} `json:"must,omitempty"` MustNot []interface{} `json:"must_not,omitempty"` Should []interface{} `json:"should,omitempty"` } type NesEsObject struct { Query QueryObject `json:"bool,omitempty"` } type PnameObj struct { Match ProjectName `json:"match,omitempty"` } type ProjectName struct { Pname string `json:"s_projectname,omitempty"` } type PurObj struct { Match Purchasing `json:"terms,omitempty"` } type Purchasing struct { Pur []string `json:"purchasing,omitempty"` } type BuyerObj struct { Match Buyer `json:"match,omitempty"` } type Buyer struct { Buyer string `json:"buyer,omitempty"` } type AreaObj struct { Match Area `json:"match,omitempty"` } type Area struct { Area string `json:"area,omitempty"` } type CityObj struct { Match City `json:"match,omitempty"` } type City struct { City string `json:"city,omitempty"` }