Skip to content

Instantly share code, notes, and snippets.

@mottaquikarim
Created December 29, 2020 17:15
Show Gist options
  • Save mottaquikarim/1cd5fd5a8fa08e6646a486c7872bb607 to your computer and use it in GitHub Desktop.
Save mottaquikarim/1cd5fd5a8fa08e6646a486c7872bb607 to your computer and use it in GitHub Desktop.
// BoolQuery Elastic bool query
type BoolQuery struct {
Bool BoolQueryParams `json:"bool"`
}
// BoolQueryParams params for an Elastic bool query
type BoolQueryParams struct {
Must interface{} `json:"must,omitempty"`
Should interface{} `json:"should,omitempty"`
Filter interface{} `json:"filter,omitempty"`
MinimumShouldMatch int `json:"minimum_should_match,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment