forked from sdqri/effdsl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheffdsl.go
140 lines (125 loc) · 5.28 KB
/
effdsl.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
package effdsl
import (
objs "github.com/sdqri/effdsl/objects"
)
//--------------------------------------------------------------------------------------//
// Type aliasing //
//--------------------------------------------------------------------------------------//
type (
M = objs.M
SearchBody = objs.SearchBody
BodyOption = objs.BodyOption
QueryResult = objs.QueryResult
SortClauseResult = objs.SortClauseResult
// Other types
BooleanClause = objs.BooleanClause
QueryStringOption = objs.QueryStringOption
RangeQueryOption = objs.RangeQueryOption
TermQueryOption = objs.TermQueryOption
SourceFitlerOption = objs.SourceFitlerOption
MatchOperator = objs.MatchOperator
Fuzziness = objs.Fuzziness
WildcardQueryFieldParameter = objs.WildcardQueryFieldParameter
RewriteParameter = objs.RewriteParameter
SortOrder = objs.SortOrder
SuggestSort = objs.SuggestSort
SuggestMode = objs.SuggestMode
)
//--------------------------------------------------------------------------------------//
// Define //
//--------------------------------------------------------------------------------------//
var (
// body.go
WithPIT = objs.WithPIT
WithPaginate = objs.WithPaginate
WithSearchAfter = objs.WithSearchAfter
WithQuery = objs.WithQuery
WithSort = objs.WithSort
WithCollpse = objs.WithCollpse
WithSourceFilter = objs.WithSourceFilter
Define = objs.Define
// q_bool_query.go
Must = objs.Must
Filter = objs.Filter
MustNot = objs.MustNot
Should = objs.Should
MinimumShouldMatch = objs.MinimumShouldMatch
BoolQuery = objs.BoolQuery
// q_exists_query.go
ExistsQuery = objs.ExistsQuery
// q_fuzzy_query.go
WithFuzziness = objs.WithFuzziness
WithPrefixLength = objs.WithPrefixLength
WithMaxExpansions = objs.WithMaxExpansions
WithFQRewrite = objs.WithFQRewrite
WithTranspositions = objs.WithTranspositions
FuzzyQuery = objs.FuzzyQuery
// q_match_query.go
MatchQuery = objs.MatchQuery
WithMatchOperator = objs.WithMatchOperator
WithFuzzinessParameter = objs.WithFuzzinessParameter
// q_wildcard_query.go
WildcardQuery = objs.WildcardQuery
WithBoost = objs.WithBoost
WithRewriteParameter = objs.WithRewriteParameter
// q_query_string.go
WithFields = objs.WithFields
WithAnalyzeWildcard = objs.WithAnalyzeWildcard
QueryString = objs.QueryString
// q_range_query.go
WithGT = objs.WithGT
WithGTE = objs.WithGTE
WithLT = objs.WithLT
WithLTE = objs.WithLTE
WithFormat = objs.WithFormat
RangeQuery = objs.RangeQuery
// q_regexp_query.go
WithFlags = objs.WithFlags
WithCaseInsensitive = objs.WithCaseInsensitive
WithMaxDeterminizedStates = objs.WithMaxDeterminizedStates
WithRQRewrite = objs.WithRQRewrite
RegexpQuery = objs.RegexpQuery
// q_term_query.go
WithTQBoost = objs.WithTQBoost
TermQuery = objs.TermQuery
// q_term_set_query.go
WithMinimumShouldMatchField = objs.WithMinimumShouldMatchField
WithMinimumShouldMatchScript = objs.WithMinimumShouldMatchScript
TermsSetQuery = objs.TermsSetQuery
// q_terms_query.go
WithTSQBoost = objs.WithTSQBoost
TermsQuery = objs.TermsQuery
// search_sort.go
SortClause = objs.SortClause
// search_source_filtering.go
WithIncludes = objs.WithIncludes
WithExcludes = objs.WithExcludes
SourceFilter = objs.SourceFilter
// search_source_filtering.go
Suggesters = objs.Suggesters
WithSuggest = objs.WithSuggest
TermSuggester = objs.TermSuggester
Term = objs.Term
WithTermSuggestAnalyzer = objs.WithTermSuggestAnalyzer
WithTermSuggestSize = objs.WithTermSuggestSize
WithTermSuggestSort = objs.WithTermSuggestSort
WithTermSuggestMode = objs.WithTermSuggestMode
)
//--------------------------------------------------------------------------------------//
// constants //
//--------------------------------------------------------------------------------------//
const (
SORT_DEFAULT objs.SortOrder = objs.SORT_DEFAULT
SORT_ASC objs.SortOrder = objs.SORT_ASC
SORT_DESC objs.SortOrder = objs.SORT_DESC
MatchOperatorOR objs.MatchOperator = objs.MatchOperatorOR
MatchOperatorAND objs.MatchOperator = objs.MatchOperatorAND
FuzzinessAUTO objs.Fuzziness = objs.FuzzinessAUTO
RewriteParameterConstantScoreBlended objs.RewriteParameter = objs.RewriteParameterConstantScoreBlended
RewriteParameterConstantScore objs.RewriteParameter = objs.RewriteParameterConstantScore
RewriteParameterConstantScoreBoolean objs.RewriteParameter = objs.RewriteParameterConstantScoreBoolean
RewriteParameterScoringBoolean objs.RewriteParameter = objs.RewriteParameterScoringBoolean
RewriteParameterTopTermsBlendedFreqsN objs.RewriteParameter = objs.RewriteParameterTopTermsBlendedFreqsN
RewriteParameterTopTermsBoostN objs.RewriteParameter = objs.RewriteParameterTopTermsBoostN
RewriteParameterTopTermsN objs.RewriteParameter = objs.RewriteParameterTopTermsN
)