Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct { Must *Must `json:"must,omitempty"` MustNot *MustNot `json:"must_not,omitempty"` Should *Should `json:"should,omitempty"` Term *Term `json:"term,omitempty"` }
Bool holds a general query that carries any number of Must, MustNot, and Should operations
type Filterer ¶
func NewFilterer ¶
func NewFilterer() Filterer
type HasParent ¶ added in v0.8.1
HasParent is used to query for resources that use a join field and have a parent resource
type Must ¶
type Must []interface{}
Must holds a must operator which each equates to an AND operation
type MustNot ¶
type MustNot []interface{}
MustNot holds a must_not operator which each equates to a != operation
type Query ¶
type Query struct { Bool *Bool `json:"bool,omitempty"` Term *Term `json:"term,omitempty"` Prefix *Term `json:"prefix,omitempty"` QueryString *QueryString `json:"query_string,omitempty"` Nested *Nested `json:"nested,omitempty"` Range *Range `json:"range,omitempty"` HasParent *HasParent `json:"has_parent,omitempty"` }
Query holds a parent query that carries the entire search query
type QueryString ¶
type Range ¶ added in v0.6.0
type Range map[string]*RangeOperator
Holds an operator that evaluates a range for comparisons
type RangeOperator ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.