You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The `combined_fields` query supports searching multiple text fields as if their contents had been indexed into one combined field.
117
+
* @doc_id query-dsl-combined-fields-query
108
118
* @availability stack since=7.13.0
109
119
* @availability serverless
110
120
*/
111
121
combined_fields?: CombinedFieldsQuery
122
+
/**
123
+
* Wraps a filter query and returns every matching document with a relevance score equal to the `boost` parameter value.
124
+
* @doc_id query-dsl-constant-score-query
125
+
*/
112
126
constant_score?: ConstantScoreQuery
127
+
/**
128
+
* Returns documents matching one or more wrapped queries, called query clauses or clauses.
129
+
* If a returned document matches multiple query clauses, the `dis_max` query assigns the document the highest relevance score from any matching clause, plus a tie breaking increment for any additional matching subqueries.
130
+
* @doc_id query-dsl-dis-max-query
131
+
*/
113
132
dis_max?: DisMaxQuery
133
+
/**
134
+
* Boosts the relevance score of documents closer to a provided origin date or point.
135
+
* For example, you can use this query to give more weight to documents closer to a certain date or location.
136
+
* @doc_id query-dsl-distance-feature-query
137
+
*/
114
138
distance_feature?: DistanceFeatureQuery
139
+
/**
140
+
* Returns documents that contain an indexed value for a field.
141
+
* @doc_id query-dsl-exists-query
142
+
*/
115
143
exists?: ExistsQuery
144
+
/**
145
+
* The `function_score` enables you to modify the score of documents that are retrieved by a query.
146
+
* @doc_id query-dsl-function-score-query
147
+
*/
116
148
function_score?: FunctionScoreQuery
149
+
/**
150
+
* Returns documents that contain terms similar to the search term, as measured by a Levenshtein edit distance.
151
+
* @doc_id query-dsl-fuzzy-query
152
+
*/
117
153
fuzzy?: SingleKeyDictionary<Field,FuzzyQuery>
154
+
/**
155
+
* Matches geo_point and geo_shape values that intersect a bounding box.
156
+
* @doc_id query-dsl-geo-bounding-box-query
157
+
*/
118
158
geo_bounding_box?: GeoBoundingBoxQuery
159
+
/**
160
+
* Matches `geo_point` and `geo_shape` values within a given distance of a geopoint.
161
+
* @doc_id query-dsl-geo-distance-query
162
+
*/
119
163
geo_distance?: GeoDistanceQuery
120
164
geo_polygon?: GeoPolygonQuery
165
+
/**
166
+
* Filter documents indexed using either the `geo_shape` or the `geo_point` type.
167
+
* @doc_id query-dsl-geo-shape-query
168
+
*/
121
169
geo_shape?: GeoShapeQuery
122
170
has_child?: HasChildQuery
123
171
has_parent?: HasParentQuery
@@ -171,9 +219,21 @@ export class QueryContainer {
171
219
}
172
220
173
221
exportclassFieldLookup{
222
+
/**
223
+
* `id` of the document.
224
+
*/
174
225
id: Id
226
+
/**
227
+
* Index from which to retrieve the document.
228
+
*/
175
229
index?: IndexName
230
+
/**
231
+
* Name of the field.
232
+
*/
176
233
path?: Field
234
+
/**
235
+
* Custom routing value.
236
+
*/
177
237
routing?: Routing
178
238
}
179
239
@@ -182,24 +242,51 @@ export class FieldNameQuery {
182
242
}
183
243
184
244
exportclassQueryBase{
245
+
/**
246
+
* Floating point number used to decrease or increase the relevance scores of the query.
247
+
* Boost values are relative to the default value of 1.0.
248
+
* A boost value between 0 and 1.0 decreases the relevance score.
249
+
* A value greater than 1.0 increases the relevance score.
250
+
* @server_default 1.0
251
+
*/
185
252
boost?: float
186
253
/** @codegen_name query_name */
187
254
_name?: string
188
255
}
189
256
190
257
exportclassCombinedFieldsQueryextendsQueryBase{
258
+
/**
259
+
* List of fields to search. Field wildcard patterns are allowed. Only `text` fields are supported, and they must all have the same search `analyzer`.
260
+
*/
191
261
fields: Field[]
262
+
/**
263
+
* Text to search for in the provided `fields`.
264
+
* The `combined_fields` query analyzes the provided text before performing a search.
265
+
*/
192
266
query: string
193
267
194
-
/** @server_default true */
268
+
/**
269
+
* If true, match phrase queries are automatically created for multi-term synonyms.
270
+
* @server_default true
271
+
*/
195
272
auto_generate_synonyms_phrase_query?: boolean
196
273
197
-
/** @server_default or */
274
+
/**
275
+
* Boolean logic used to interpret text in the query value.
276
+
* @server_default or
277
+
*/
198
278
operator?: CombinedFieldsOperator
199
279
280
+
/**
281
+
* Minimum number of clauses that must match for a document to be returned.
282
+
* @doc_id query-dsl-minimum-should-match
283
+
*/
200
284
minimum_should_match?: MinimumShouldMatch
201
285
202
-
/** @server_default none */
286
+
/**
287
+
* Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a `stop` filter.
0 commit comments