Versions in this module Expand all Collapse all v0 v0.7.0 Feb 27, 2018 v0.6.0 Jan 5, 2018 Changes in this version + const MatchQueryOperatorAnd + const MatchQueryOperatorOr + var QueryDateTimeFormat = time.RFC3339 + var QueryDateTimeParser = optional.Name + func DumpQuery(m mapping.IndexMapping, query Query) (string, error) + func SetLog(l *log.Logger) + type BleveQueryTime struct + func (t *BleveQueryTime) MarshalJSON() ([]byte, error) + func (t *BleveQueryTime) UnmarshalJSON(data []byte) error + type BoolFieldQuery struct + Bool bool + BoostVal *Boost + FieldVal string + func NewBoolFieldQuery(val bool) *BoolFieldQuery + func (q *BoolFieldQuery) Boost() float64 + func (q *BoolFieldQuery) Field() string + func (q *BoolFieldQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *BoolFieldQuery) SetBoost(b float64) + func (q *BoolFieldQuery) SetField(f string) + type BooleanQuery struct + BoostVal *Boost + Must Query + MustNot Query + Should Query + func NewBooleanQuery(must []Query, should []Query, mustNot []Query) *BooleanQuery + func NewBooleanQueryForQueryString(must []Query, should []Query, mustNot []Query) *BooleanQuery + func (q *BooleanQuery) AddMust(m ...Query) + func (q *BooleanQuery) AddMustNot(m ...Query) + func (q *BooleanQuery) AddShould(m ...Query) + func (q *BooleanQuery) Boost() float64 + func (q *BooleanQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *BooleanQuery) SetBoost(b float64) + func (q *BooleanQuery) SetMinShould(minShould float64) + func (q *BooleanQuery) UnmarshalJSON(data []byte) error + func (q *BooleanQuery) Validate() error + type Boost float64 + func (b *Boost) GoString() string + func (b *Boost) Value() float64 + type BoostableQuery interface + Boost func() float64 + SetBoost func(b float64) + type ConjunctionQuery struct + BoostVal *Boost + Conjuncts []Query + func NewConjunctionQuery(conjuncts []Query) *ConjunctionQuery + func (q *ConjunctionQuery) AddQuery(aq ...Query) + func (q *ConjunctionQuery) Boost() float64 + func (q *ConjunctionQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *ConjunctionQuery) SetBoost(b float64) + func (q *ConjunctionQuery) UnmarshalJSON(data []byte) error + func (q *ConjunctionQuery) Validate() error + type DateRangeQuery struct + BoostVal *Boost + End BleveQueryTime + FieldVal string + InclusiveEnd *bool + InclusiveStart *bool + Start BleveQueryTime + func NewDateRangeInclusiveQuery(start, end time.Time, startInclusive, endInclusive *bool) *DateRangeQuery + func NewDateRangeQuery(start, end time.Time) *DateRangeQuery + func (q *DateRangeQuery) Boost() float64 + func (q *DateRangeQuery) Field() string + func (q *DateRangeQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *DateRangeQuery) SetBoost(b float64) + func (q *DateRangeQuery) SetField(f string) + func (q *DateRangeQuery) Validate() error + type DisjunctionQuery struct + BoostVal *Boost + Disjuncts []Query + Min float64 + func NewDisjunctionQuery(disjuncts []Query) *DisjunctionQuery + func (q *DisjunctionQuery) AddQuery(aq ...Query) + func (q *DisjunctionQuery) Boost() float64 + func (q *DisjunctionQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *DisjunctionQuery) SetBoost(b float64) + func (q *DisjunctionQuery) SetMin(m float64) + func (q *DisjunctionQuery) UnmarshalJSON(data []byte) error + func (q *DisjunctionQuery) Validate() error + type DocIDQuery struct + BoostVal *Boost + IDs []string + func NewDocIDQuery(ids []string) *DocIDQuery + func (q *DocIDQuery) Boost() float64 + func (q *DocIDQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *DocIDQuery) SetBoost(b float64) + type FieldableQuery interface + Field func() string + SetField func(f string) + type FuzzyQuery struct + BoostVal *Boost + FieldVal string + Fuzziness int + Prefix int + Term string + func NewFuzzyQuery(term string) *FuzzyQuery + func (q *FuzzyQuery) Boost() float64 + func (q *FuzzyQuery) Field() string + func (q *FuzzyQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *FuzzyQuery) SetBoost(b float64) + func (q *FuzzyQuery) SetField(f string) + func (q *FuzzyQuery) SetFuzziness(f int) + func (q *FuzzyQuery) SetPrefix(p int) + type GeoBoundingBoxQuery struct + BoostVal *Boost + BottomRight []float64 + FieldVal string + TopLeft []float64 + func NewGeoBoundingBoxQuery(topLeftLon, topLeftLat, bottomRightLon, bottomRightLat float64) *GeoBoundingBoxQuery + func (q *GeoBoundingBoxQuery) Boost() float64 + func (q *GeoBoundingBoxQuery) Field() string + func (q *GeoBoundingBoxQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *GeoBoundingBoxQuery) SetBoost(b float64) + func (q *GeoBoundingBoxQuery) SetField(f string) + func (q *GeoBoundingBoxQuery) UnmarshalJSON(data []byte) error + func (q *GeoBoundingBoxQuery) Validate() error + type GeoDistanceQuery struct + BoostVal *Boost + Distance string + FieldVal string + Location []float64 + func NewGeoDistanceQuery(lon, lat float64, distance string) *GeoDistanceQuery + func (q *GeoDistanceQuery) Boost() float64 + func (q *GeoDistanceQuery) Field() string + func (q *GeoDistanceQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *GeoDistanceQuery) SetBoost(b float64) + func (q *GeoDistanceQuery) SetField(f string) + func (q *GeoDistanceQuery) UnmarshalJSON(data []byte) error + func (q *GeoDistanceQuery) Validate() error + type MatchAllQuery struct + BoostVal *Boost + func NewMatchAllQuery() *MatchAllQuery + func (q *MatchAllQuery) Boost() float64 + func (q *MatchAllQuery) MarshalJSON() ([]byte, error) + func (q *MatchAllQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *MatchAllQuery) SetBoost(b float64) + type MatchNoneQuery struct + BoostVal *Boost + func NewMatchNoneQuery() *MatchNoneQuery + func (q *MatchNoneQuery) Boost() float64 + func (q *MatchNoneQuery) MarshalJSON() ([]byte, error) + func (q *MatchNoneQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *MatchNoneQuery) SetBoost(b float64) + type MatchPhraseQuery struct + Analyzer string + BoostVal *Boost + FieldVal string + MatchPhrase string + func NewMatchPhraseQuery(matchPhrase string) *MatchPhraseQuery + func (q *MatchPhraseQuery) Boost() float64 + func (q *MatchPhraseQuery) Field() string + func (q *MatchPhraseQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *MatchPhraseQuery) SetBoost(b float64) + func (q *MatchPhraseQuery) SetField(f string) + type MatchQuery struct + Analyzer string + BoostVal *Boost + FieldVal string + Fuzziness int + Match string + Operator MatchQueryOperator + Prefix int + func NewMatchQuery(match string) *MatchQuery + func (q *MatchQuery) Boost() float64 + func (q *MatchQuery) Field() string + func (q *MatchQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *MatchQuery) SetBoost(b float64) + func (q *MatchQuery) SetField(f string) + func (q *MatchQuery) SetFuzziness(f int) + func (q *MatchQuery) SetOperator(operator MatchQueryOperator) + func (q *MatchQuery) SetPrefix(p int) + type MatchQueryOperator int + func (o *MatchQueryOperator) UnmarshalJSON(data []byte) error + func (o MatchQueryOperator) MarshalJSON() ([]byte, error) + type MultiPhraseQuery struct + BoostVal *Boost + Field string + Terms [][]string + func NewMultiPhraseQuery(terms [][]string, field string) *MultiPhraseQuery + func (q *MultiPhraseQuery) Boost() float64 + func (q *MultiPhraseQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *MultiPhraseQuery) SetBoost(b float64) + func (q *MultiPhraseQuery) UnmarshalJSON(data []byte) error + func (q *MultiPhraseQuery) Validate() error + type NumericRangeQuery struct + BoostVal *Boost + FieldVal string + InclusiveMax *bool + InclusiveMin *bool + Max *float64 + Min *float64 + func NewNumericRangeInclusiveQuery(min, max *float64, minInclusive, maxInclusive *bool) *NumericRangeQuery + func NewNumericRangeQuery(min, max *float64) *NumericRangeQuery + func (q *NumericRangeQuery) Boost() float64 + func (q *NumericRangeQuery) Field() string + func (q *NumericRangeQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *NumericRangeQuery) SetBoost(b float64) + func (q *NumericRangeQuery) SetField(f string) + func (q *NumericRangeQuery) Validate() error + type PhraseQuery struct + BoostVal *Boost + Field string + Terms []string + func NewPhraseQuery(terms []string, field string) *PhraseQuery + func (q *PhraseQuery) Boost() float64 + func (q *PhraseQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *PhraseQuery) SetBoost(b float64) + func (q *PhraseQuery) UnmarshalJSON(data []byte) error + func (q *PhraseQuery) Validate() error + type PrefixQuery struct + BoostVal *Boost + FieldVal string + Prefix string + func NewPrefixQuery(prefix string) *PrefixQuery + func (q *PrefixQuery) Boost() float64 + func (q *PrefixQuery) Field() string + func (q *PrefixQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *PrefixQuery) SetBoost(b float64) + func (q *PrefixQuery) SetField(f string) + type Query interface + Searcher func(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func ParseQuery(input []byte) (Query, error) + type QueryStringQuery struct + BoostVal *Boost + Query string + func NewQueryStringQuery(query string) *QueryStringQuery + func (q *QueryStringQuery) Boost() float64 + func (q *QueryStringQuery) Parse() (Query, error) + func (q *QueryStringQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *QueryStringQuery) SetBoost(b float64) + func (q *QueryStringQuery) Validate() error + type RegexpQuery struct + BoostVal *Boost + FieldVal string + Regexp string + func NewRegexpQuery(regexp string) *RegexpQuery + func (q *RegexpQuery) Boost() float64 + func (q *RegexpQuery) Field() string + func (q *RegexpQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *RegexpQuery) SetBoost(b float64) + func (q *RegexpQuery) SetField(f string) + func (q *RegexpQuery) Validate() error + type TermQuery struct + BoostVal *Boost + FieldVal string + Term string + func NewTermQuery(term string) *TermQuery + func (q *TermQuery) Boost() float64 + func (q *TermQuery) Field() string + func (q *TermQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *TermQuery) SetBoost(b float64) + func (q *TermQuery) SetField(f string) + type TermRangeQuery struct + BoostVal *Boost + FieldVal string + InclusiveMax *bool + InclusiveMin *bool + Max string + Min string + func NewTermRangeInclusiveQuery(min, max string, minInclusive, maxInclusive *bool) *TermRangeQuery + func NewTermRangeQuery(min, max string) *TermRangeQuery + func (q *TermRangeQuery) Boost() float64 + func (q *TermRangeQuery) Field() string + func (q *TermRangeQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *TermRangeQuery) SetBoost(b float64) + func (q *TermRangeQuery) SetField(f string) + func (q *TermRangeQuery) Validate() error + type ValidatableQuery interface + Validate func() error + type WildcardQuery struct + BoostVal *Boost + FieldVal string + Wildcard string + func NewWildcardQuery(wildcard string) *WildcardQuery + func (q *WildcardQuery) Boost() float64 + func (q *WildcardQuery) Field() string + func (q *WildcardQuery) Searcher(i index.IndexReader, m mapping.IndexMapping, options search.SearcherOptions) (search.Searcher, error) + func (q *WildcardQuery) SetBoost(b float64) + func (q *WildcardQuery) SetField(f string) + func (q *WildcardQuery) Validate() error