Versions in this module Expand all Collapse all v2 v2.0.1 Aug 26, 2023 Changes in this version + type API struct + AggFilter AggFilter + AggNested AggNested + AggScript AggScript + AggTerms AggTerms + Aggs Aggs + BoolQuery BoolQuery + CombinedFieldQuery CombinedFieldQuery + ExistsQuery ExistsQuery + Fields Fields + FieldsField FieldsField + Fuzzyquery Fuzzyquery + IndicesBoost IndicesBoost + MatchAllQuery MatchAllQuery + MatchNoneQuery MatchNoneQuery + MatchQuery MatchQuery + NestedQuery NestedQuery + Query Query + Search Search + SimpleQueryStringQuery SimpleQueryStringQuery + TermQuery TermQuery + TermsQuery TermsQuery + func NewApi() *API + type AggFilter func(name string, field string, value string, o ...func(AggFilter *tAggFilter)) *tAggFilter + func NewAggFilter() AggFilter + func (*AggFilter) WithAggs(aggs ...BaseAgg) func(all *tAggFilter) + type AggNested func(name string, path string, aggs *tAggs, o ...func(aggNestes *tAggNested)) *tAggNested + func NewAggNested() AggNested + type AggScript func(name string, bucketsPath map[string]string, o ...func(AggScript *tAggScript)) *tAggScript + func NewAggScript() AggScript + func (*AggScript) WithFormat(format string) func(all *tAggScript) + func (*AggScript) WithGapPolicy(gapPolicy GapPolicy) func(all *tAggScript) + type AggTerms func(name string, field string, o ...func(AggTerms *tAggTerms)) *tAggTerms + func NewAggTerms() AggTerms + func (*AggTerms) WithDocCountErrorUpperBound(DocCountErrorUpperBound int) func(all *tAggTerms) + func (*AggTerms) WithExclude(Exclude []string) func(all *tAggTerms) + func (*AggTerms) WithExecutionHint(executionHint ExecutionHint) func(all *tAggTerms) + func (*AggTerms) WithInclude(Include []string) func(all *tAggTerms) + func (*AggTerms) WithMissing(missing string) func(all *tAggTerms) + func (*AggTerms) WithOrder(Order *AggTermsOrder) func(all *tAggTerms) + func (*AggTerms) WithShardMinDocCount(ShardMinDocCount int) func(all *tAggTerms) + func (*AggTerms) WithShardSize(shardSize int) func(all *tAggTerms) + func (*AggTerms) WithShowTermDocCountError(ShowTermDocCountError bool) func(all *tAggTerms) + func (*AggTerms) WithSize(size int) func(all *tAggTerms) + func (*AggTerms) WithSumOtherDocCount(SumOtherDocCount int) func(all *tAggTerms) + func (*AggTerms) WithValueType(valueType string) func(all *tAggTerms) + type AggTermsOrder struct + Field string + Order Order + func (ato *AggTermsOrder) MarshalJSON() ([]byte, error) + type Aggs func(o ...func(aggs *tAggs)) *tAggs + func NewAggs() Aggs + func (a *Aggs) WithAggregations(aggs ...BaseAgg) func(all *tAggs) + type BaseAgg interface + GetAggName func() string + type BaseQuery interface + GetQueryName func() string + type BoolQuery func(o ...func(all *tBoolQuery)) BaseQuery + func NewBoolQuery() BoolQuery + func (q *BoolQuery) WithFilter(bq ...BaseQuery) func(all *tBoolQuery) + func (q *BoolQuery) WithMinimumShouldMatch(msm *MinimumShouldMatch) func(all *tBoolQuery) + func (q *BoolQuery) WithMust(bq ...BaseQuery) func(all *tBoolQuery) + func (q *BoolQuery) WithMustNot(bq ...BaseQuery) func(all *tBoolQuery) + func (q *BoolQuery) WithShould(bq ...BaseQuery) func(all *tBoolQuery) + type CollectMode string + const CollectModeBreadthFirst + const CollectModeDepthFirst + type CombinedFieldQuery func(fields []string, query string, o ...func(all *tCombinedFieldsQuery)) BaseQuery + func NewCombinedFieldQuery() CombinedFieldQuery + func (q *CombinedFieldQuery) WithAutoGenerateSynonymsPhraseQuery(b bool) func(all *tCombinedFieldsQuery) + func (q *CombinedFieldQuery) WithMinimumShouldMatch(v string) func(all *tCombinedFieldsQuery) + func (q *CombinedFieldQuery) WithOperator(o QueryOperator) func(all *tCombinedFieldsQuery) + func (q *CombinedFieldQuery) WithZeroTermsQuery(v QueryZeroTermsQuery) func(all *tCombinedFieldsQuery) + type ExecutionHint string + const ExecutionHintGlobalOrdinals + const ExecutionHintMap + type ExistsQuery func(field string, o ...func(all *tExistsQuery)) BaseQuery + func NewExistsQuery() ExistsQuery + type Fields func(o ...func(fields *tFields)) *tFields + func NewFields() Fields + func (a *Fields) WithFields(fields ...*tFieldsField) func(all *tFields) + type FieldsField func(name string, o ...func(FieldsField *tFieldsField)) *tFieldsField + func NewFieldsField() FieldsField + func (*FieldsField) WithFormat(format string) func(all *tFieldsField) + type Fuzzyquery func(field string, value string, o ...func(all *tFuzzyQuery)) BaseQuery + func NewFuzzyQuery() Fuzzyquery + func (fq *Fuzzyquery) WithFuzziness(fuzziness string) func(all *tFuzzyQuery) + func (fq *Fuzzyquery) WithMaxExpansion(maxExpansion int) func(all *tFuzzyQuery) + func (fq *Fuzzyquery) WithPrefixLength(prefixLength int) func(all *tFuzzyQuery) + func (fq *Fuzzyquery) WithRewrite(rewrite QueryRewrite) func(all *tFuzzyQuery) + func (fq *Fuzzyquery) WithTranspositions(transpositions bool) func(all *tFuzzyQuery) + type GapPolicy string + const GapPolicyInsertZeros + const GapPolicyKeepValues + const GapPolicySkip + type IDsQuery struct + IDs []string + func (*IDsQuery) GetQueryName() string + type IndicesBoost func(o ...func(all tIndicesBoost)) tIndicesBoost + func NewIndicesBoost() IndicesBoost + func (ib *IndicesBoost) AppendIndex(index string, boost float64) func(all tIndicesBoost) + type IntervalsQuery struct + AllOf *InvervalsQueryAllOf + AnyOf *InvervalsQueryAnyOf + Field string + Fuzzy *InvervalsQueryFuzzy + Match *InvervalsQueryMatch + Prefix *InvervalsQueryPrefix + Wildcard *InvervalsQueryWildcard + func (i *IntervalsQuery) GetQueryName() string + func (i *IntervalsQuery) MarshalJSON() ([]byte, error) + type InvervalsQueryAllOf struct + Filter *InvervalsQueryFilter + Intervals []any + MaxGaps int + Ordered bool + type InvervalsQueryAnyOf struct + Filter *InvervalsQueryFilter + Intervals []any + type InvervalsQueryFilter struct + After *BaseQuery + Before *BaseQuery + ContainedBy *BaseQuery + Containing *BaseQuery + NotContainedBy *BaseQuery + NotContaining *BaseQuery + NotOverlapping *BaseQuery + Overlapping *BaseQuery + Script *Script + type InvervalsQueryFuzzy struct + Analyzer string + Fuzziness string + PrefixLength int + Term string + Transpositions bool + UseField string + type InvervalsQueryMatch struct + Analyzer string + Filter *InvervalsQueryFilter + MaxGaps int + Ordered bool + Query string + UseField string + type InvervalsQueryPrefix struct + Analyzer string + Prefix string + UseField string + type InvervalsQueryWildcard struct + Analyzer string + Pattern string + UseField string + type MatchAllQuery func(o ...func(all *tMatchAllQuery)) BaseQuery + func NewMatchAllQuery() MatchAllQuery + func (qma *MatchAllQuery) WithBoost(boost float64) func(all *tMatchAllQuery) + type MatchBoolPrefixQuery struct + Analyzer string + Field string + Query string + func (mb *MatchBoolPrefixQuery) GetQueryName() string + func (mb *MatchBoolPrefixQuery) MarshalJSON() ([]byte, error) + type MatchNoneQuery func(o ...func(all *tMatchNoneQuery)) BaseQuery + func NewMatchNoneQuery() MatchNoneQuery + type MatchPhrasePrefixQuery struct + Analyzer string + Field string + MaxExpansions int + Query string + Slop int + ZeroTermsQuery QueryZeroTermsQuery + func (mpp *MatchPhrasePrefixQuery) GetQueryName() string + func (mpp *MatchPhrasePrefixQuery) MarshalJSON() ([]byte, error) + type MatchPhraseQuery struct + Analyzer string + Field string + Query string + func (mp *MatchPhraseQuery) GetQueryName() string + func (mp *MatchPhraseQuery) MarshalJSON() ([]byte, error) + type MatchQuery func(field string, query string, o ...func(all *tMatchQuery)) BaseQuery + func NewMatchQuery() MatchQuery + func (q *MatchQuery) WithAnalyzer(v string) func(all *tMatchQuery) + func (q *MatchQuery) WithAutoGenerateSynonymsPhraseQuery(v bool) func(all *tMatchQuery) + func (q *MatchQuery) WithFuzziness(v string) func(all *tMatchQuery) + func (q *MatchQuery) WithFuzzyRewrite(v string) func(all *tMatchQuery) + func (q *MatchQuery) WithFuzzyTranspositions(v bool) func(all *tMatchQuery) + func (q *MatchQuery) WithLenient(v bool) func(all *tMatchQuery) + func (q *MatchQuery) WithMaxExpansions(v int) func(all *tMatchQuery) + func (q *MatchQuery) WithMinimumShouldMatch(v *MinimumShouldMatch) func(all *tMatchQuery) + func (q *MatchQuery) WithOperator(v QueryOperator) func(all *tMatchQuery) + func (q *MatchQuery) WithPrefixLength(v int) func(all *tMatchQuery) + func (q *MatchQuery) WithZeroTermsQuery(v QueryZeroTermsQuery) func(all *tMatchQuery) + type MinimumShouldMatch struct + IntValue int + StringValue string + func (msm *MinimumShouldMatch) MarshalJSON() ([]byte, error) + type MultiMatchQuery struct + Analyzer string + AutoGenerateSynonymsPhraseQuery bool + Fields []string + Fuzziness string + FuzzyRewrite string + FuzzyTranspositions bool + Lenient bool + MaxExpansions int + MinimumShouldMatch string + Operator QueryOperator + PrefixLength int + Query string + TieBreaker float64 + Type QueryMultiMatchType + ZeroTermsQuery QueryZeroTermsQuery + func (*MultiMatchQuery) GetQueryName() string + type MultiType struct + DateVal time.Time + FloatVal float64 + StringVal string + func (mt *MultiType) IsDate() bool + func (mt *MultiType) MarshalJSON() ([]byte, error) + func (mt *MultiType) TimeFormat() string + type NestedQuery func(path string, query *tQuery, o ...func(all *tNestedQuery)) BaseQuery + func NewNestedQuery() NestedQuery + func (nq *NestedQuery) WithIgnoreUnmapped(ignoreUnmapped bool) func(all *tNestedQuery) + func (nq *NestedQuery) WithScoreMode(mode ScoreMode) func(all *tNestedQuery) + type Order string + const OrderASC + const OrderDESC + type PrefixQuery struct + CaseInsensitive bool + Field string + Rewrite QueryRewrite + Value string + func (f *PrefixQuery) GetQueryName() string + func (f *PrefixQuery) MarshalJSON() ([]byte, error) + type Query func(query BaseQuery, o ...func(*tQuery)) *tQuery + func NewQuery() Query + type QueryExpandWildcards string + const QueryExpandWildcardsAll + const QueryExpandWildcardsClosed + const QueryExpandWildcardsHidden + const QueryExpandWildcardsNone + const QueryExpandWildcardsOpen + type QueryMultiMatchType string + const QueryMultiMatchTypeBestFields + const QueryMultiMatchTypeBoolPrefix + const QueryMultiMatchTypeCrossFields + const QueryMultiMatchTypeMostFields + const QueryMultiMatchTypePhrase + const QueryMultiMatchTypePhrasePrefix + type QueryOperator string + const QueryOperatorAND + const QueryOperatorOR + type QueryRelation string + const QueryRelationCONTAINS + const QueryRelationINTERSECTS + const QueryRelationWITHIN + type QueryRewrite string + const QueryRewriteConstantScore + const QueryRewriteScoringboolean + const QueryRewriteTopTermsBlendedFreqsN + const QueryRewriteTopTermsBoostN + const QueryRewriteTopTermsN + type QuerySearchType string + const QuerySearchDFSTypeQueryThenFetch + const QuerySearchTypeQueryThenFetch + type QuerySimpleQueryStringFlag string + const QuerySimpleQueryStringFlagALL + const QuerySimpleQueryStringFlagAND + const QuerySimpleQueryStringFlagESCAPE + const QuerySimpleQueryStringFlagFUZZY + const QuerySimpleQueryStringFlagNEAR + const QuerySimpleQueryStringFlagNONE + const QuerySimpleQueryStringFlagNOT + const QuerySimpleQueryStringFlagOR + const QuerySimpleQueryStringFlagPHRASE + const QuerySimpleQueryStringFlagPRECEDENCE + const QuerySimpleQueryStringFlagPREFIX + const QuerySimpleQueryStringFlagSLOP + const QuerySimpleQueryStringFlagWHITESPACE + type QueryZeroTermsQuery string + const QeruyZeroTermsQueryNONE + const QueryZeroTermsQueryALL + type RangeQuery struct + Boost float64 + Field string + Format string + GT *MultiType + GTE *MultiType + LT *MultiType + LTE *MultiType + Relation QueryRelation + TimeZone string + func (*RangeQuery) GetQueryName() string + func (r *RangeQuery) MarshalJSON() ([]byte, error) + type ScoreMode string + const ScoreModeAVG + const ScoreModeMAX + const ScoreModeMIN + const ScoreModeNONE + const ScoreModeSUM + type Script struct + Id string + Lang string + Params map[string]any + Source string + type Search func(o ...func(all *tSearch)) *tSearch + func NewSearch() Search + func (*Search) WithAggs(aggs ...BaseAgg) func(all *tSearch) + func (*Search) WithFields(fields *tFields) func(all *tSearch) + func (*Search) WithIndicesBoost(ib tIndicesBoost) func(all *tSearch) + func (*Search) WithQuery(query *tQuery) func(all *tSearch) + type SearchQueryParams struct + AllowNoIndices bool + AllowPartialSearchResults bool + AnalyzeWildcard bool + Analyzer string + BatchedReduceSize int + CSSMinimizeRoundtrips bool + DF string + DefaultOperator QueryOperator + DocvalueFields []string + ExpandWildcards QueryExpandWildcards + Explain bool + From int + IgnoreThrottled bool + Lenient bool + MaxConcurrentShardRequests int + PreFilterShardSize int + Preference string + Q string + RequestCache bool + RestTotalHitsAsInt bool + Routing string + Scroll string + SearchType QuerySearchType + SeqNoPrimaryTerm bool + Size int + Sort SearchSortVal + Source *SearchSourceVal + SourceExcludes StringList + SourceIncludes StringList + Stats string + StoredFields StringList + SuggestField string + SuggestMode SearchSuggestMode + SuggestSize int + SuggestText string + TerminateAfter int + Timeout string + TrackScores bool + TrackTotalHits *TrackTotalHitsVal + TypedKeys bool + Version bool + type SearchSortVal map[string]string + func (ssv SearchSortVal) MarshalJSON() ([]byte, error) + type SearchSourceVal struct + BoolValue bool + Fields StringList + func (ssv *SearchSourceVal) MarshalJSON() ([]byte, error) + type SearchSuggestMode string + const SearchSuggestModeAlways + const SearchSuggestModeMissing + const SearchSuggestModePopular + type SimpleQueryStringQuery func(query string, o ...func(all *tSimpleQueryStringQuery)) BaseQuery + func NewSimpleQueryStringQuery() SimpleQueryStringQuery + func (sqsq *SimpleQueryStringQuery) WithAnalyzeWildcard(analyzeWildcard bool) func(all *tSimpleQueryStringQuery) + func (sqsq *SimpleQueryStringQuery) WithAnalyzer(analyzer string) func(all *tSimpleQueryStringQuery) + func (sqsq *SimpleQueryStringQuery) WithAutoGenerateSynonymsPhraseQuery(autoGenerateSynonymsPhraseQuery bool) func(all *tSimpleQueryStringQuery) + func (sqsq *SimpleQueryStringQuery) WithDefaultOperator(defaultOperator QueryOperator) func(all *tSimpleQueryStringQuery) + func (sqsq *SimpleQueryStringQuery) WithFields(fields ...string) func(all *tSimpleQueryStringQuery) + func (sqsq *SimpleQueryStringQuery) WithFlags(flags ...QuerySimpleQueryStringFlag) func(all *tSimpleQueryStringQuery) + func (sqsq *SimpleQueryStringQuery) WithFuzzyMaxExpansions(FuzzyMaxExpansions int) func(all *tSimpleQueryStringQuery) + func (sqsq *SimpleQueryStringQuery) WithFuzzyPrefixLength(FuzzyPrefixLength int) func(all *tSimpleQueryStringQuery) + func (sqsq *SimpleQueryStringQuery) WithFuzzyTranspositions(FuzzyTranspositions bool) func(all *tSimpleQueryStringQuery) + func (sqsq *SimpleQueryStringQuery) WithLenient(Lenient bool) func(all *tSimpleQueryStringQuery) + func (sqsq *SimpleQueryStringQuery) WithMinimumShouldMatch(MinimumShouldMatch *MinimumShouldMatch) func(all *tSimpleQueryStringQuery) + func (sqsq *SimpleQueryStringQuery) WithQuoteFieldSuffix(QuoteFieldSuffix string) func(all *tSimpleQueryStringQuery) + type SimpleQueryStringQueryFlags []QuerySimpleQueryStringFlag + func (flags SimpleQueryStringQueryFlags) MarshalJSON() ([]byte, error) + type StringList []string + func (sl StringList) MarshalJSON() ([]byte, error) + type StringOrList []string + func (sl StringOrList) MarshalJSON() ([]byte, error) + type StringQuery struct + AllowLeadingWildcard bool + AnalyzeWildcard bool + Analyzer string + AutoGenerateSynonymsPhraseQuery bool + Boost float64 + DefaultField string + DefaultOperator QueryOperator + EnablePositionIncrements bool + Fields []string + Fuzziness string + FuzzyMaxExpansions int + FuzzyPrefixLength int + FuzzyTranspositions bool + Lenient bool + MaxDeterminizedStates int + MinimumShouldMatch string + PhraseSlop int + Query string + QuoteAnalyzer string + QuoteFieldSuffix string + Rewrite string + TimeZone string + func (*StringQuery) GetQueryName() string + type TermQuery func(field string, value string, o ...func(all *tTermQuery)) BaseQuery + func NewTermQuery() TermQuery + func (q *TermQuery) WithBoost(boost float64) func(all *tTermQuery) + func (q *TermQuery) WithCaseInsensitiv(caseInsensitive bool) func(all *tTermQuery) + type TermsQuery func(field string, values []string, o ...func(all *tTermsQuery)) BaseQuery + func NewTermsQuery() TermsQuery + func (q *TermsQuery) WithBoost(boost float64) func(all *tTermsQuery) + func (q *TermsQuery) WithCaseInsensitiv(caseInsensitive bool) func(all *tTermsQuery) + type TrackTotalHitsVal struct + BoolVal bool + IntVal int + func (tthv *TrackTotalHitsVal) MarshalJSON() ([]byte, error) Other modules containing this package github.com/je4/elasticdsl