@opensearch-project/opensearch 3.1.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/OpenSearchApi.d.ts +82 -8
- package/api/_core/count.js +1 -1
- package/api/_core/createPit.d.ts +1 -2
- package/api/_core/deleteAllPits.d.ts +2 -2
- package/api/_core/deleteByQuery.d.ts +2 -1
- package/api/_core/deleteByQuery.js +1 -1
- package/api/_core/deletePit.d.ts +2 -2
- package/api/_core/getAllPits.d.ts +2 -2
- package/api/_core/rankEval.d.ts +1 -1
- package/api/_core/reindex.d.ts +1 -0
- package/api/_core/reindex.js +1 -0
- package/api/_core/renderSearchTemplate.d.ts +1 -1
- package/api/_core/searchShards.d.ts +0 -11
- package/api/_core/searchShards.js +0 -1
- package/api/_core/updateByQuery.d.ts +2 -1
- package/api/_core/updateByQuery.js +1 -1
- package/api/_types/_common.aggregations.d.ts +37 -156
- package/api/_types/_common.d.ts +4 -11
- package/api/_types/_common.query_dsl.d.ts +64 -39
- package/api/_types/_core.field_caps.d.ts +1 -1
- package/api/_types/{_core._common.d.ts → _core.pit.d.ts} +0 -12
- package/api/_types/_core.rank_eval.d.ts +3 -3
- package/api/_types/_core.termvectors.d.ts +1 -1
- package/api/_types/index.d.ts +2 -2
- package/api/_types/ml._common.d.ts +193 -28
- package/api/asynchronousSearch/delete.js +1 -1
- package/api/asynchronousSearch/get.js +1 -1
- package/api/asynchronousSearch/search.js +4 -4
- package/api/asynchronousSearch/stats.js +1 -1
- package/api/cat/aliases.js +1 -1
- package/api/cat/allPitSegments.js +1 -1
- package/api/cat/clusterManager.js +1 -1
- package/api/cat/count.js +1 -1
- package/api/cat/fielddata.js +1 -1
- package/api/cat/health.js +1 -1
- package/api/cat/indices.js +2 -2
- package/api/cat/master.js +1 -1
- package/api/cat/nodeattrs.js +1 -1
- package/api/cat/nodes.js +1 -1
- package/api/cat/pendingTasks.js +1 -1
- package/api/cat/pitSegments.js +1 -1
- package/api/cat/plugins.js +1 -1
- package/api/cat/recovery.js +1 -1
- package/api/cat/repositories.js +1 -1
- package/api/cat/segmentReplication.js +2 -2
- package/api/cat/shards.js +1 -1
- package/api/cat/snapshots.js +1 -1
- package/api/cat/tasks.js +1 -1
- package/api/cat/templates.js +1 -1
- package/api/cat/threadPool.js +1 -1
- package/api/cluster/allocationExplain.js +4 -4
- package/api/cluster/deleteComponentTemplate.js +3 -3
- package/api/cluster/deleteDecommissionAwareness.js +1 -1
- package/api/cluster/deleteVotingConfigExclusions.js +2 -2
- package/api/cluster/existsComponentTemplate.js +4 -4
- package/api/cluster/getComponentTemplate.js +4 -4
- package/api/cluster/getDecommissionAwareness.js +2 -2
- package/api/cluster/getSettings.js +5 -5
- package/api/cluster/getWeightedRouting.js +1 -1
- package/api/cluster/health.js +14 -14
- package/api/cluster/pendingTasks.js +5 -5
- package/api/cluster/postVotingConfigExclusions.js +4 -4
- package/api/cluster/putComponentTemplate.js +6 -6
- package/api/cluster/putDecommissionAwareness.js +3 -3
- package/api/cluster/putSettings.js +5 -5
- package/api/cluster/putWeightedRouting.js +1 -1
- package/api/cluster/reroute.js +6 -6
- package/api/cluster/state.js +10 -10
- package/api/cluster/stats.js +5 -5
- package/api/index.d.ts +40 -6
- package/api/indices/simulateIndexTemplate.d.ts +5 -1
- package/api/ml/_api.js +51 -0
- package/api/ml/createController.d.ts +39 -0
- package/api/ml/createController.js +50 -0
- package/api/ml/createModelMeta.d.ts +1 -1
- package/api/ml/deleteController.d.ts +30 -0
- package/api/ml/deleteController.js +49 -0
- package/api/ml/executeAgent.d.ts +36 -0
- package/api/ml/executeAgent.js +50 -0
- package/api/ml/executeAlgorithm.d.ts +45 -0
- package/api/ml/executeAlgorithm.js +50 -0
- package/api/ml/getAgent.d.ts +30 -0
- package/api/ml/getAgent.js +49 -0
- package/api/ml/getAllMemories.d.ts +34 -0
- package/api/ml/getAllMemories.js +48 -0
- package/api/ml/getAllMessages.d.ts +35 -0
- package/api/ml/getAllMessages.js +51 -0
- package/api/ml/getAllTools.d.ts +28 -0
- package/api/ml/getAllTools.js +45 -0
- package/api/ml/getController.d.ts +34 -0
- package/api/ml/getController.js +49 -0
- package/api/ml/getMemory.d.ts +2 -8
- package/api/ml/getMemory.js +5 -5
- package/api/ml/getMessage.d.ts +2 -3
- package/api/ml/getMessage.js +6 -12
- package/api/ml/getMessageTraces.d.ts +6 -1
- package/api/ml/getMessageTraces.js +2 -0
- package/api/ml/getProfile.d.ts +30 -0
- package/api/ml/getProfile.js +47 -0
- package/api/ml/getProfileModels.d.ts +31 -0
- package/api/ml/getProfileModels.js +49 -0
- package/api/ml/getProfileTasks.d.ts +31 -0
- package/api/ml/getProfileTasks.js +49 -0
- package/api/ml/getStats.d.ts +31 -0
- package/api/ml/getStats.js +50 -0
- package/api/ml/getTool.d.ts +30 -0
- package/api/ml/getTool.js +49 -0
- package/api/ml/registerModel.d.ts +6 -2
- package/api/ml/registerModelMeta.d.ts +1 -1
- package/api/ml/searchAgents.d.ts +36 -0
- package/api/ml/searchAgents.js +47 -0
- package/api/ml/searchTasks.d.ts +36 -0
- package/api/ml/searchTasks.js +47 -0
- package/api/ml/undeployModel.d.ts +1 -1
- package/api/ml/unloadModel.d.ts +1 -1
- package/api/ml/updateController.d.ts +37 -0
- package/api/ml/updateController.js +50 -0
- package/api/ml/updateModel.d.ts +2 -1
- package/api/ml/uploadModel.d.ts +2 -1
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ export type AdjacencyMatrixBucket = MultiBucketBase & {
|
|
|
28
28
|
key: string;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export type Aggregate = CardinalityAggregate | HdrPercentilesAggregate | HdrPercentileRanksAggregate | TDigestPercentilesAggregate | TDigestPercentileRanksAggregate | PercentilesBucketAggregate | MedianAbsoluteDeviationAggregate | MinAggregate | MaxAggregate | SumAggregate | AvgAggregate | WeightedAvgAggregate | ValueCountAggregate | SimpleValueAggregate | DerivativeAggregate | BucketMetricValueAggregate | StatsAggregate | StatsBucketAggregate | ExtendedStatsAggregate | ExtendedStatsBucketAggregate | GeoBoundsAggregate | GeoCentroidAggregate | HistogramAggregate | DateHistogramAggregate | AutoDateHistogramAggregate | VariableWidthHistogramAggregate | StringTermsAggregate | LongTermsAggregate | DoubleTermsAggregate | UnmappedTermsAggregate | LongRareTermsAggregate | StringRareTermsAggregate | UnmappedRareTermsAggregate | MultiTermsAggregate | MissingAggregate | NestedAggregate | ReverseNestedAggregate | GlobalAggregate | FilterAggregate | ChildrenAggregate | ParentAggregate | SamplerAggregate | UnmappedSamplerAggregate | GeoHashGridAggregate | GeoTileGridAggregate |
|
|
31
|
+
export type Aggregate = CardinalityAggregate | HdrPercentilesAggregate | HdrPercentileRanksAggregate | TDigestPercentilesAggregate | TDigestPercentileRanksAggregate | PercentilesBucketAggregate | MedianAbsoluteDeviationAggregate | MinAggregate | MaxAggregate | SumAggregate | AvgAggregate | WeightedAvgAggregate | ValueCountAggregate | SimpleValueAggregate | DerivativeAggregate | BucketMetricValueAggregate | StatsAggregate | StatsBucketAggregate | ExtendedStatsAggregate | ExtendedStatsBucketAggregate | GeoBoundsAggregate | GeoCentroidAggregate | HistogramAggregate | DateHistogramAggregate | AutoDateHistogramAggregate | VariableWidthHistogramAggregate | StringTermsAggregate | LongTermsAggregate | DoubleTermsAggregate | UnmappedTermsAggregate | LongRareTermsAggregate | StringRareTermsAggregate | UnmappedRareTermsAggregate | MultiTermsAggregate | MissingAggregate | NestedAggregate | ReverseNestedAggregate | GlobalAggregate | FilterAggregate | ChildrenAggregate | ParentAggregate | SamplerAggregate | UnmappedSamplerAggregate | GeoHashGridAggregate | GeoTileGridAggregate | RangeAggregate | DateRangeAggregate | GeoDistanceAggregate | IpRangeAggregate | FiltersAggregate | AdjacencyMatrixAggregate | SignificantLongTermsAggregate | SignificantStringTermsAggregate | UnmappedSignificantTermsAggregate | CompositeAggregate | ScriptedMetricAggregate | TopHitsAggregate | InferenceAggregate | StringStatsAggregate | BoxPlotAggregate | TopMetricsAggregate | TTestAggregate | RateAggregate | CumulativeCardinalityAggregate | MatrixStatsAggregate | GeoLineAggregate
|
|
32
32
|
|
|
33
33
|
export type AggregateBase = {
|
|
34
34
|
meta?: Common.Metadata;
|
|
@@ -48,13 +48,10 @@ export type AggregationContainer = {
|
|
|
48
48
|
avg?: AverageAggregation;
|
|
49
49
|
avg_bucket?: AverageBucketAggregation;
|
|
50
50
|
boxplot?: BoxplotAggregation;
|
|
51
|
-
bucket_correlation?: BucketCorrelationAggregation;
|
|
52
|
-
bucket_count_ks_test?: BucketKsAggregation;
|
|
53
51
|
bucket_script?: BucketScriptAggregation;
|
|
54
52
|
bucket_selector?: BucketSelectorAggregation;
|
|
55
53
|
bucket_sort?: BucketSortAggregation;
|
|
56
54
|
cardinality?: CardinalityAggregation;
|
|
57
|
-
categorize_text?: CategorizeTextAggregation;
|
|
58
55
|
children?: ChildrenAggregation;
|
|
59
56
|
composite?: CompositeAggregation;
|
|
60
57
|
cumulative_cardinality?: CumulativeCardinalityAggregation;
|
|
@@ -67,18 +64,15 @@ export type AggregationContainer = {
|
|
|
67
64
|
extended_stats_bucket?: ExtendedStatsBucketAggregation;
|
|
68
65
|
filter?: Common_QueryDsl.QueryContainer;
|
|
69
66
|
filters?: FiltersAggregation;
|
|
70
|
-
frequent_item_sets?: FrequentItemSetsAggregation;
|
|
71
67
|
geo_bounds?: GeoBoundsAggregation;
|
|
72
68
|
geo_centroid?: GeoCentroidAggregation;
|
|
73
69
|
geo_distance?: GeoDistanceAggregation;
|
|
74
70
|
geo_line?: GeoLineAggregation;
|
|
75
71
|
geohash_grid?: GeoHashGridAggregation;
|
|
76
|
-
geohex_grid?: GeohexGridAggregation;
|
|
77
72
|
geotile_grid?: GeoTileGridAggregation;
|
|
78
73
|
global?: GlobalAggregation;
|
|
79
74
|
histogram?: HistogramAggregation;
|
|
80
75
|
inference?: InferenceAggregation;
|
|
81
|
-
ip_prefix?: IpPrefixAggregation;
|
|
82
76
|
ip_range?: IpRangeAggregation;
|
|
83
77
|
line?: GeoLineAggregation;
|
|
84
78
|
matrix_stats?: MatrixStatsAggregation;
|
|
@@ -145,7 +139,7 @@ export type AutoDateHistogramAggregation = BucketAggregationBase & {
|
|
|
145
139
|
minimum_interval?: MinimumInterval;
|
|
146
140
|
missing?: Common.DateTime;
|
|
147
141
|
offset?: string;
|
|
148
|
-
params?: Record<string,
|
|
142
|
+
params?: Record<string, any>;
|
|
149
143
|
script?: Common.Script;
|
|
150
144
|
time_zone?: Common.TimeZone;
|
|
151
145
|
}
|
|
@@ -179,30 +173,6 @@ export type BoxplotAggregation = MetricAggregationBase & {
|
|
|
179
173
|
|
|
180
174
|
export type BucketAggregationBase = Aggregation & Record<string, any>
|
|
181
175
|
|
|
182
|
-
export type BucketCorrelationAggregation = BucketPathAggregation & {
|
|
183
|
-
function: BucketCorrelationFunction;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export type BucketCorrelationFunction = {
|
|
187
|
-
count_correlation: BucketCorrelationFunctionCountCorrelation;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export type BucketCorrelationFunctionCountCorrelation = {
|
|
191
|
-
indicator: BucketCorrelationFunctionCountCorrelationIndicator;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export type BucketCorrelationFunctionCountCorrelationIndicator = {
|
|
195
|
-
doc_count: number;
|
|
196
|
-
expectations: number[];
|
|
197
|
-
fractions?: number[];
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export type BucketKsAggregation = BucketPathAggregation & {
|
|
201
|
-
alternative?: string[];
|
|
202
|
-
fractions?: number[];
|
|
203
|
-
sampling_method?: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
176
|
export type BucketMetricValueAggregate = SingleMetricAggregateBase & {
|
|
207
177
|
keys: string[];
|
|
208
178
|
}
|
|
@@ -229,18 +199,12 @@ export type BucketSelectorAggregation = PipelineAggregationBase & {
|
|
|
229
199
|
|
|
230
200
|
export type BucketsFiltersBucket = Record<string, FiltersBucket> | FiltersBucket[]
|
|
231
201
|
|
|
232
|
-
export type BucketsFrequentItemSetsBucket = Record<string, FrequentItemSetsBucket> | FrequentItemSetsBucket[]
|
|
233
|
-
|
|
234
202
|
export type BucketsGeoHashGridBucket = Record<string, GeoHashGridBucket> | GeoHashGridBucket[]
|
|
235
203
|
|
|
236
|
-
export type BucketsGeoHexGridBucket = Record<string, GeoHexGridBucket> | GeoHexGridBucket[]
|
|
237
|
-
|
|
238
204
|
export type BucketsGeoTileGridBucket = Record<string, GeoTileGridBucket> | GeoTileGridBucket[]
|
|
239
205
|
|
|
240
206
|
export type BucketsHistogramBucket = Record<string, HistogramBucket> | HistogramBucket[]
|
|
241
207
|
|
|
242
|
-
export type BucketsIpPrefixBucket = Record<string, IpPrefixBucket> | IpPrefixBucket[]
|
|
243
|
-
|
|
244
208
|
export type BucketsIpRangeBucket = Record<string, IpRangeBucket> | IpRangeBucket[]
|
|
245
209
|
|
|
246
210
|
export type BucketsLongRareTermsBucket = Record<string, LongRareTermsBucket> | LongRareTermsBucket[]
|
|
@@ -274,7 +238,7 @@ export type BucketsVariableWidthHistogramBucket = Record<string, VariableWidthHi
|
|
|
274
238
|
|
|
275
239
|
export type BucketsVoid = Record<string, Common.Void> | Common.Void[]
|
|
276
240
|
|
|
277
|
-
export type CalendarInterval = '
|
|
241
|
+
export type CalendarInterval = 'second' | '1s' | 'minute' | '1m' | 'hour' | '1h' | 'day' | '1d' | 'week' | '1w' | 'month' | '1M' | 'quarter' | '1q' | 'year' | '1Y'
|
|
278
242
|
|
|
279
243
|
export type CardinalityAggregate = AggregateBase & {
|
|
280
244
|
value: number;
|
|
@@ -288,21 +252,6 @@ export type CardinalityAggregation = MetricAggregationBase & {
|
|
|
288
252
|
|
|
289
253
|
export type CardinalityExecutionMode = 'direct' | 'global_ordinals' | 'save_memory_heuristic' | 'save_time_heuristic' | 'segment_ordinals'
|
|
290
254
|
|
|
291
|
-
export type CategorizeTextAggregation = Aggregation & {
|
|
292
|
-
categorization_analyzer?: CategorizeTextAnalyzer;
|
|
293
|
-
categorization_filters?: string[];
|
|
294
|
-
field: Common.Field;
|
|
295
|
-
max_matched_tokens?: number;
|
|
296
|
-
max_unique_tokens?: number;
|
|
297
|
-
min_doc_count?: number;
|
|
298
|
-
shard_min_doc_count?: number;
|
|
299
|
-
shard_size?: number;
|
|
300
|
-
similarity_threshold?: number;
|
|
301
|
-
size?: number;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
export type CategorizeTextAnalyzer = string | CustomCategorizeTextAnalyzer
|
|
305
|
-
|
|
306
255
|
export type ChildrenAggregate = SingleBucketAggregateBase & Record<string, any>
|
|
307
256
|
|
|
308
257
|
export type ChildrenAggregation = BucketAggregationBase & {
|
|
@@ -334,27 +283,18 @@ export type CompositeAggregation = BucketAggregationBase & {
|
|
|
334
283
|
sources?: Record<string, CompositeAggregationSource>[];
|
|
335
284
|
}
|
|
336
285
|
|
|
337
|
-
export type CompositeAggregationBase = {
|
|
338
|
-
field?: Common.Field;
|
|
339
|
-
missing_bucket?: boolean;
|
|
340
|
-
missing_order?: MissingOrder;
|
|
341
|
-
order?: Common.SortOrder;
|
|
342
|
-
script?: Common.Script;
|
|
343
|
-
value_type?: ValueType;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
286
|
export type CompositeAggregationSource = {
|
|
347
|
-
date_histogram?:
|
|
348
|
-
geotile_grid?:
|
|
349
|
-
histogram?:
|
|
350
|
-
terms?:
|
|
287
|
+
date_histogram?: CompositeDateHistogramAggregationSource;
|
|
288
|
+
geotile_grid?: CompositeGeoTileGridAggregationSource;
|
|
289
|
+
histogram?: CompositeHistogramAggregationSource;
|
|
290
|
+
terms?: CompositeTermsAggregationSource;
|
|
351
291
|
}
|
|
352
292
|
|
|
353
293
|
export type CompositeBucket = MultiBucketBase & {
|
|
354
294
|
key: CompositeAggregateKey;
|
|
355
295
|
}
|
|
356
296
|
|
|
357
|
-
export type
|
|
297
|
+
export type CompositeDateHistogramAggregationSource = CompositeValuesSource & {
|
|
358
298
|
calendar_interval?: Common.DurationLarge;
|
|
359
299
|
fixed_interval?: Common.DurationLarge;
|
|
360
300
|
format?: string;
|
|
@@ -362,16 +302,25 @@ export type CompositeDateHistogramAggregation = CompositeAggregationBase & {
|
|
|
362
302
|
time_zone?: Common.TimeZone;
|
|
363
303
|
}
|
|
364
304
|
|
|
365
|
-
export type
|
|
305
|
+
export type CompositeGeoTileGridAggregationSource = CompositeValuesSource & {
|
|
366
306
|
bounds?: Common.GeoBounds;
|
|
367
307
|
precision?: number;
|
|
368
308
|
}
|
|
369
309
|
|
|
370
|
-
export type
|
|
310
|
+
export type CompositeHistogramAggregationSource = CompositeValuesSource & {
|
|
371
311
|
interval: number;
|
|
372
312
|
}
|
|
373
313
|
|
|
374
|
-
export type
|
|
314
|
+
export type CompositeTermsAggregationSource = CompositeValuesSource & Record<string, any>
|
|
315
|
+
|
|
316
|
+
export type CompositeValuesSource = {
|
|
317
|
+
field?: Common.Field;
|
|
318
|
+
missing_bucket?: boolean;
|
|
319
|
+
missing_order?: MissingOrder;
|
|
320
|
+
order?: Common.SortOrder;
|
|
321
|
+
script?: Common.Script;
|
|
322
|
+
value_type?: ValueType;
|
|
323
|
+
}
|
|
375
324
|
|
|
376
325
|
export type CumulativeCardinalityAggregate = AggregateBase & {
|
|
377
326
|
value: number;
|
|
@@ -382,12 +331,6 @@ export type CumulativeCardinalityAggregation = PipelineAggregationBase & Record<
|
|
|
382
331
|
|
|
383
332
|
export type CumulativeSumAggregation = PipelineAggregationBase & Record<string, any>
|
|
384
333
|
|
|
385
|
-
export type CustomCategorizeTextAnalyzer = {
|
|
386
|
-
char_filter?: string[];
|
|
387
|
-
filter?: string[];
|
|
388
|
-
tokenizer?: string;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
334
|
export type DateHistogramAggregate = MultiBucketAggregateBaseDateHistogramBucket & Record<string, any>
|
|
392
335
|
|
|
393
336
|
export type DateHistogramAggregation = BucketAggregationBase & {
|
|
@@ -402,8 +345,8 @@ export type DateHistogramAggregation = BucketAggregationBase & {
|
|
|
402
345
|
min_doc_count?: number;
|
|
403
346
|
missing?: Common.DateTime;
|
|
404
347
|
offset?: Common.Duration;
|
|
405
|
-
order?:
|
|
406
|
-
params?: Record<string,
|
|
348
|
+
order?: HistogramOrder;
|
|
349
|
+
params?: Record<string, any>;
|
|
407
350
|
script?: Common.Script;
|
|
408
351
|
time_zone?: Common.TimeZone;
|
|
409
352
|
}
|
|
@@ -419,7 +362,7 @@ export type DateRangeAggregation = BucketAggregationBase & {
|
|
|
419
362
|
field?: Common.Field;
|
|
420
363
|
format?: string;
|
|
421
364
|
keyed?: boolean;
|
|
422
|
-
missing?:
|
|
365
|
+
missing?: Common.FieldValue;
|
|
423
366
|
ranges?: DateRangeExpression[];
|
|
424
367
|
time_zone?: Common.TimeZone;
|
|
425
368
|
}
|
|
@@ -521,27 +464,6 @@ export type FormattableMetricAggregation = MetricAggregationBase & {
|
|
|
521
464
|
format?: string;
|
|
522
465
|
}
|
|
523
466
|
|
|
524
|
-
export type FrequentItemSetsAggregate = MultiBucketAggregateBaseFrequentItemSetsBucket & Record<string, any>
|
|
525
|
-
|
|
526
|
-
export type FrequentItemSetsAggregation = {
|
|
527
|
-
fields: FrequentItemSetsField[];
|
|
528
|
-
filter?: Common_QueryDsl.QueryContainer;
|
|
529
|
-
minimum_set_size?: number;
|
|
530
|
-
minimum_support?: number;
|
|
531
|
-
size?: number;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
export type FrequentItemSetsBucket = MultiBucketBase & {
|
|
535
|
-
key: Record<string, string[]>;
|
|
536
|
-
support: number;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
export type FrequentItemSetsField = {
|
|
540
|
-
exclude?: TermsExclude;
|
|
541
|
-
field: Common.Field;
|
|
542
|
-
include?: TermsInclude;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
467
|
export type GapPolicy = 'insert_zeros' | 'keep_values' | 'skip'
|
|
546
468
|
|
|
547
469
|
export type GeoBoundsAggregate = AggregateBase & {
|
|
@@ -586,20 +508,6 @@ export type GeoHashGridBucket = MultiBucketBase & {
|
|
|
586
508
|
key: Common.GeoHash;
|
|
587
509
|
}
|
|
588
510
|
|
|
589
|
-
export type GeoHexGridAggregate = MultiBucketAggregateBaseGeoHexGridBucket & Record<string, any>
|
|
590
|
-
|
|
591
|
-
export type GeohexGridAggregation = BucketAggregationBase & {
|
|
592
|
-
bounds?: Common.GeoBounds;
|
|
593
|
-
field: Common.Field;
|
|
594
|
-
precision?: number;
|
|
595
|
-
shard_size?: number;
|
|
596
|
-
size?: number;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
export type GeoHexGridBucket = MultiBucketBase & {
|
|
600
|
-
key: Common.GeoHexCell;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
511
|
export type GeoLineAggregate = AggregateBase & {
|
|
604
512
|
geometry: Common.GeoLine;
|
|
605
513
|
properties: Record<string, any>;
|
|
@@ -664,7 +572,7 @@ export type HistogramAggregation = BucketAggregationBase & {
|
|
|
664
572
|
min_doc_count?: number;
|
|
665
573
|
missing?: number;
|
|
666
574
|
offset?: number;
|
|
667
|
-
order?:
|
|
575
|
+
order?: HistogramOrder;
|
|
668
576
|
script?: Common.Script;
|
|
669
577
|
}
|
|
670
578
|
|
|
@@ -673,6 +581,11 @@ export type HistogramBucket = MultiBucketBase & {
|
|
|
673
581
|
key_as_string?: string;
|
|
674
582
|
}
|
|
675
583
|
|
|
584
|
+
export type HistogramOrder = {
|
|
585
|
+
_count?: Common.SortOrder;
|
|
586
|
+
_key?: Common.SortOrder;
|
|
587
|
+
}
|
|
588
|
+
|
|
676
589
|
export type HoltLinearModelSettings = {
|
|
677
590
|
alpha?: number;
|
|
678
591
|
beta?: number;
|
|
@@ -733,24 +646,6 @@ export type InferenceTopClassEntry = {
|
|
|
733
646
|
class_score: number;
|
|
734
647
|
}
|
|
735
648
|
|
|
736
|
-
export type IpPrefixAggregate = MultiBucketAggregateBaseIpPrefixBucket & Record<string, any>
|
|
737
|
-
|
|
738
|
-
export type IpPrefixAggregation = BucketAggregationBase & {
|
|
739
|
-
append_prefix_length?: boolean;
|
|
740
|
-
field: Common.Field;
|
|
741
|
-
is_ipv6?: boolean;
|
|
742
|
-
keyed?: boolean;
|
|
743
|
-
min_doc_count?: number;
|
|
744
|
-
prefix_length: number;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
export type IpPrefixBucket = MultiBucketBase & {
|
|
748
|
-
is_ipv6: boolean;
|
|
749
|
-
key: string;
|
|
750
|
-
netmask?: string;
|
|
751
|
-
prefix_length: number;
|
|
752
|
-
}
|
|
753
|
-
|
|
754
649
|
export type IpRangeAggregate = MultiBucketAggregateBaseIpRangeBucket & Record<string, any>
|
|
755
650
|
|
|
756
651
|
export type IpRangeAggregation = BucketAggregationBase & {
|
|
@@ -830,7 +725,7 @@ export type MedianAbsoluteDeviationAggregation = FormatMetricAggregationBase & {
|
|
|
830
725
|
|
|
831
726
|
export type MetricAggregationBase = {
|
|
832
727
|
field?: Common.Field;
|
|
833
|
-
missing?:
|
|
728
|
+
missing?: Common.FieldValue;
|
|
834
729
|
script?: Common.Script;
|
|
835
730
|
}
|
|
836
731
|
|
|
@@ -842,13 +737,11 @@ export type MinBucketAggregation = PipelineAggregationBase & Record<string, any>
|
|
|
842
737
|
|
|
843
738
|
export type MinimumInterval = 'day' | 'hour' | 'minute' | 'month' | 'second' | 'year'
|
|
844
739
|
|
|
845
|
-
export type Missing = string | number | number | boolean
|
|
846
|
-
|
|
847
740
|
export type MissingAggregate = SingleBucketAggregateBase & Record<string, any>
|
|
848
741
|
|
|
849
742
|
export type MissingAggregation = BucketAggregationBase & {
|
|
850
743
|
field?: Common.Field;
|
|
851
|
-
missing?:
|
|
744
|
+
missing?: Common.FieldValue;
|
|
852
745
|
}
|
|
853
746
|
|
|
854
747
|
export type MissingOrder = 'default' | 'first' | 'last'
|
|
@@ -893,18 +786,10 @@ export type MultiBucketAggregateBaseFiltersBucket = AggregateBase & {
|
|
|
893
786
|
buckets: BucketsFiltersBucket;
|
|
894
787
|
}
|
|
895
788
|
|
|
896
|
-
export type MultiBucketAggregateBaseFrequentItemSetsBucket = AggregateBase & {
|
|
897
|
-
buckets: BucketsFrequentItemSetsBucket;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
789
|
export type MultiBucketAggregateBaseGeoHashGridBucket = AggregateBase & {
|
|
901
790
|
buckets: BucketsGeoHashGridBucket;
|
|
902
791
|
}
|
|
903
792
|
|
|
904
|
-
export type MultiBucketAggregateBaseGeoHexGridBucket = AggregateBase & {
|
|
905
|
-
buckets: BucketsGeoHexGridBucket;
|
|
906
|
-
}
|
|
907
|
-
|
|
908
793
|
export type MultiBucketAggregateBaseGeoTileGridBucket = AggregateBase & {
|
|
909
794
|
buckets: BucketsGeoTileGridBucket;
|
|
910
795
|
}
|
|
@@ -913,10 +798,6 @@ export type MultiBucketAggregateBaseHistogramBucket = AggregateBase & {
|
|
|
913
798
|
buckets: BucketsHistogramBucket;
|
|
914
799
|
}
|
|
915
800
|
|
|
916
|
-
export type MultiBucketAggregateBaseIpPrefixBucket = AggregateBase & {
|
|
917
|
-
buckets: BucketsIpPrefixBucket;
|
|
918
|
-
}
|
|
919
|
-
|
|
920
801
|
export type MultiBucketAggregateBaseIpRangeBucket = AggregateBase & {
|
|
921
802
|
buckets: BucketsIpRangeBucket;
|
|
922
803
|
}
|
|
@@ -967,7 +848,7 @@ export type MultiBucketBase = {
|
|
|
967
848
|
|
|
968
849
|
export type MultiTermLookup = {
|
|
969
850
|
field: Common.Field;
|
|
970
|
-
missing?:
|
|
851
|
+
missing?: Common.FieldValue;
|
|
971
852
|
}
|
|
972
853
|
|
|
973
854
|
export type MultiTermsAggregate = TermsAggregateBaseMultiTermsBucket & Record<string, any>
|
|
@@ -975,7 +856,7 @@ export type MultiTermsAggregate = TermsAggregateBaseMultiTermsBucket & Record<st
|
|
|
975
856
|
export type MultiTermsAggregation = BucketAggregationBase & {
|
|
976
857
|
collect_mode?: TermsAggregationCollectMode;
|
|
977
858
|
min_doc_count?: number;
|
|
978
|
-
order?:
|
|
859
|
+
order?: HistogramOrder;
|
|
979
860
|
shard_min_doc_count?: number;
|
|
980
861
|
shard_size?: number;
|
|
981
862
|
show_term_doc_count_error?: boolean;
|
|
@@ -1020,7 +901,7 @@ export type PercentileRanksAggregation = FormatMetricAggregationBase & {
|
|
|
1020
901
|
hdr?: HdrMethod;
|
|
1021
902
|
keyed?: boolean;
|
|
1022
903
|
tdigest?: TDigest;
|
|
1023
|
-
values?: number[]
|
|
904
|
+
values?: number[];
|
|
1024
905
|
}
|
|
1025
906
|
|
|
1026
907
|
export type Percentiles = KeyedPercentiles | ArrayPercentilesItem[]
|
|
@@ -1071,7 +952,7 @@ export type RareTermsAggregation = BucketAggregationBase & {
|
|
|
1071
952
|
field?: Common.Field;
|
|
1072
953
|
include?: TermsInclude;
|
|
1073
954
|
max_doc_count?: number;
|
|
1074
|
-
missing?:
|
|
955
|
+
missing?: Common.FieldValue;
|
|
1075
956
|
precision?: number;
|
|
1076
957
|
value_type?: string;
|
|
1077
958
|
}
|
|
@@ -1119,7 +1000,7 @@ export type ScriptedMetricAggregation = MetricAggregationBase & {
|
|
|
1119
1000
|
combine_script?: Common.Script;
|
|
1120
1001
|
init_script?: Common.Script;
|
|
1121
1002
|
map_script?: Common.Script;
|
|
1122
|
-
params?: Record<string,
|
|
1003
|
+
params?: Record<string, any>;
|
|
1123
1004
|
reduce_script?: Common.Script;
|
|
1124
1005
|
}
|
|
1125
1006
|
|
|
@@ -1325,7 +1206,7 @@ export type TermsAggregation = BucketAggregationBase & {
|
|
|
1325
1206
|
format?: string;
|
|
1326
1207
|
include?: TermsInclude;
|
|
1327
1208
|
min_doc_count?: number;
|
|
1328
|
-
missing?:
|
|
1209
|
+
missing?: Common.FieldValue;
|
|
1329
1210
|
missing_bucket?: boolean;
|
|
1330
1211
|
missing_order?: MissingOrder;
|
|
1331
1212
|
order?: AggregateOrder;
|
package/api/_types/_common.d.ts
CHANGED
|
@@ -236,6 +236,7 @@ export type GeoDistanceSort = {
|
|
|
236
236
|
mode?: SortMode;
|
|
237
237
|
order?: SortOrder;
|
|
238
238
|
unit?: DistanceUnit;
|
|
239
|
+
[key: string]: any | GeoLocation[];
|
|
239
240
|
}
|
|
240
241
|
|
|
241
242
|
export type GeoDistanceType = 'arc' | 'plane'
|
|
@@ -248,8 +249,6 @@ export type GeoHashLocation = {
|
|
|
248
249
|
|
|
249
250
|
export type GeoHashPrecision = number | string
|
|
250
251
|
|
|
251
|
-
export type GeoHexCell = string
|
|
252
|
-
|
|
253
252
|
export type GeoLine = {
|
|
254
253
|
coordinates: number[][];
|
|
255
254
|
type: string;
|
|
@@ -272,6 +271,7 @@ export type GetStats = {
|
|
|
272
271
|
missing_time?: Duration;
|
|
273
272
|
missing_time_in_millis: DurationValueUnitMillis;
|
|
274
273
|
missing_total: number;
|
|
274
|
+
time?: Duration;
|
|
275
275
|
time_in_millis: DurationValueUnitMillis;
|
|
276
276
|
total: number;
|
|
277
277
|
}
|
|
@@ -377,8 +377,6 @@ export type Metadata = Record<string, any>
|
|
|
377
377
|
|
|
378
378
|
export type MinimumShouldMatch = number | string
|
|
379
379
|
|
|
380
|
-
export type ModelFormat = 'ONNX' | 'TORCH_SCRIPT'
|
|
381
|
-
|
|
382
380
|
export type MultiTermQueryRewrite = 'constant_score' | 'constant_score_boolean' | 'scoring_boolean' | string
|
|
383
381
|
|
|
384
382
|
export type Name = string
|
|
@@ -419,7 +417,6 @@ export type NodeShard = {
|
|
|
419
417
|
primary: boolean;
|
|
420
418
|
recovery_source?: Record<string, Id>;
|
|
421
419
|
relocating_node?: NodeId | undefined;
|
|
422
|
-
relocation_failure_info?: RelocationFailureInfo;
|
|
423
420
|
shard: number;
|
|
424
421
|
state: Indices_Stats.ShardRoutingState;
|
|
425
422
|
unassigned_info?: Cluster_AllocationExplain.UnassignedInformation;
|
|
@@ -515,10 +512,6 @@ export type RefreshStats = {
|
|
|
515
512
|
|
|
516
513
|
export type RelationName = string
|
|
517
514
|
|
|
518
|
-
export type RelocationFailureInfo = {
|
|
519
|
-
failed_attempts: number;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
515
|
export type RemoteStoreDownloadStats = {
|
|
523
516
|
total_download_size: RemoteStoreUploadDownloadStats;
|
|
524
517
|
total_time_spent?: Duration;
|
|
@@ -768,7 +761,7 @@ export type short = number
|
|
|
768
761
|
|
|
769
762
|
export type SlicedScroll = {
|
|
770
763
|
field?: Field;
|
|
771
|
-
id:
|
|
764
|
+
id: number;
|
|
772
765
|
max: number;
|
|
773
766
|
}
|
|
774
767
|
|
|
@@ -833,7 +826,7 @@ export type TaskFailure = {
|
|
|
833
826
|
task_id: number;
|
|
834
827
|
}
|
|
835
828
|
|
|
836
|
-
export type TaskId = string
|
|
829
|
+
export type TaskId = string
|
|
837
830
|
|
|
838
831
|
export type TermFrequencyNormalization = 'h1' | 'h2' | 'h3' | 'no' | 'z'
|
|
839
832
|
|
|
@@ -61,11 +61,14 @@ export type ConstantScoreQuery = QueryBase & {
|
|
|
61
61
|
filter: QueryContainer;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export type
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
export type DateDecayPlacement = {
|
|
65
|
+
decay?: number;
|
|
66
|
+
offset?: Common.Duration;
|
|
67
|
+
origin?: Common.DateTime;
|
|
68
|
+
scale?: Common.Duration;
|
|
69
|
+
}
|
|
67
70
|
|
|
68
|
-
export type
|
|
71
|
+
export type DateRangeQueryParameters = {
|
|
69
72
|
format?: Common.DateFormat;
|
|
70
73
|
from?: Common.DateMath | undefined;
|
|
71
74
|
gt?: Common.DateMath;
|
|
@@ -76,30 +79,20 @@ export type DateRangeQuery = RangeQueryBase & {
|
|
|
76
79
|
to?: Common.DateMath | undefined;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
|
-
export type DecayFunction =
|
|
82
|
+
export type DecayFunction = DecayFunctionBase & Record<string, DecayPlacement>
|
|
80
83
|
|
|
81
84
|
export type DecayFunctionBase = {
|
|
82
85
|
multi_value_mode?: MultiValueMode;
|
|
83
86
|
}
|
|
84
87
|
|
|
88
|
+
export type DecayPlacement = DateDecayPlacement | GeoDecayPlacement | NumericDecayPlacement
|
|
89
|
+
|
|
85
90
|
export type DisMaxQuery = QueryBase & {
|
|
86
91
|
queries: QueryContainer[];
|
|
87
92
|
tie_breaker?: number;
|
|
88
93
|
}
|
|
89
94
|
|
|
90
|
-
export type DistanceFeatureQuery =
|
|
91
|
-
|
|
92
|
-
export type DistanceFeatureQueryBaseDateMathDuration = QueryBase & {
|
|
93
|
-
field: Common.Field;
|
|
94
|
-
origin: Common.DateMath;
|
|
95
|
-
pivot: Common.Duration;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export type DistanceFeatureQueryBaseGeoLocationDistance = QueryBase & {
|
|
99
|
-
field: Common.Field;
|
|
100
|
-
origin: Common.GeoLocation;
|
|
101
|
-
pivot: Common.Distance;
|
|
102
|
-
}
|
|
95
|
+
export type DistanceFeatureQuery = QueryBase & Record<string, any>
|
|
103
96
|
|
|
104
97
|
export type ExistsQuery = QueryBase & {
|
|
105
98
|
field: Common.Field;
|
|
@@ -111,6 +104,13 @@ export type FieldAndFormat = Common.Field | {
|
|
|
111
104
|
include_unmapped?: boolean;
|
|
112
105
|
}
|
|
113
106
|
|
|
107
|
+
export type FieldLookup = {
|
|
108
|
+
id: Common.Id;
|
|
109
|
+
index?: Common.IndexName;
|
|
110
|
+
path?: Common.Field;
|
|
111
|
+
routing?: Common.Routing;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
114
|
export type FieldValueFactorModifier = 'ln' | 'ln1p' | 'ln2p' | 'log' | 'log1p' | 'log2p' | 'none' | 'reciprocal' | 'sqrt' | 'square'
|
|
115
115
|
|
|
116
116
|
export type FieldValueFactorScoreFunction = {
|
|
@@ -160,9 +160,12 @@ export type GeoBoundingBoxQuery = QueryBase & {
|
|
|
160
160
|
[key: string]: any | Common.GeoBounds;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
export type
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
export type GeoDecayPlacement = {
|
|
164
|
+
decay?: number;
|
|
165
|
+
offset?: Common.Distance;
|
|
166
|
+
origin?: Common.GeoLocation;
|
|
167
|
+
scale?: Common.Distance;
|
|
168
|
+
}
|
|
166
169
|
|
|
167
170
|
export type GeoDistanceQuery = QueryBase & {
|
|
168
171
|
distance: Common.Distance;
|
|
@@ -174,9 +177,14 @@ export type GeoDistanceQuery = QueryBase & {
|
|
|
174
177
|
|
|
175
178
|
export type GeoExecution = 'indexed' | 'memory'
|
|
176
179
|
|
|
180
|
+
export type GeoPolygonPoints = {
|
|
181
|
+
points: Common.GeoLocation[];
|
|
182
|
+
}
|
|
183
|
+
|
|
177
184
|
export type GeoPolygonQuery = QueryBase & {
|
|
178
185
|
ignore_unmapped?: IgnoreUnmapped;
|
|
179
186
|
validation_method?: GeoValidationMethod;
|
|
187
|
+
[key: string]: any | GeoPolygonPoints;
|
|
180
188
|
}
|
|
181
189
|
|
|
182
190
|
export type GeoShape = {
|
|
@@ -184,14 +192,15 @@ export type GeoShape = {
|
|
|
184
192
|
type?: string;
|
|
185
193
|
}
|
|
186
194
|
|
|
187
|
-
export type GeoShapeField = {
|
|
188
|
-
relation?: Common.GeoShapeRelation;
|
|
189
|
-
shape: GeoShape;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
195
|
export type GeoShapeQuery = QueryBase & {
|
|
193
196
|
ignore_unmapped?: IgnoreUnmapped;
|
|
194
|
-
[key: string]: any |
|
|
197
|
+
[key: string]: any | GeoShapeQueryField;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export type GeoShapeQueryField = {
|
|
201
|
+
indexed_shape?: FieldLookup;
|
|
202
|
+
relation?: Common.GeoShapeRelation;
|
|
203
|
+
shape: GeoShape;
|
|
195
204
|
}
|
|
196
205
|
|
|
197
206
|
export type GeoValidationMethod = 'coerce' | 'ignore_malformed' | 'strict'
|
|
@@ -297,15 +306,18 @@ export type IntervalsWildcard = {
|
|
|
297
306
|
}
|
|
298
307
|
|
|
299
308
|
export type KnnQuery = QueryBase & {
|
|
300
|
-
|
|
309
|
+
expand_nested_docs?: boolean;
|
|
310
|
+
filter?: QueryContainer;
|
|
301
311
|
k?: number;
|
|
302
312
|
max_distance?: number;
|
|
303
|
-
method_parameters?: Record<string,
|
|
313
|
+
method_parameters?: Record<string, any>;
|
|
304
314
|
min_score?: number;
|
|
305
|
-
rescore?:
|
|
315
|
+
rescore?: KnnQueryRescore;
|
|
306
316
|
vector: QueryVector;
|
|
307
317
|
}
|
|
308
318
|
|
|
319
|
+
export type KnnQueryRescore = boolean | RescoreContext
|
|
320
|
+
|
|
309
321
|
export type Like = string | LikeDocument
|
|
310
322
|
|
|
311
323
|
export type LikeDocument = {
|
|
@@ -429,16 +441,21 @@ export type NeuralQuery = QueryBase & {
|
|
|
429
441
|
query_text?: string;
|
|
430
442
|
}
|
|
431
443
|
|
|
432
|
-
export type
|
|
433
|
-
from?:
|
|
444
|
+
export type NumberRangeQueryParameters = {
|
|
445
|
+
from?: number | string | undefined;
|
|
434
446
|
gt?: number;
|
|
435
447
|
gte?: number;
|
|
436
448
|
lt?: number;
|
|
437
449
|
lte?: number;
|
|
438
|
-
to?:
|
|
450
|
+
to?: number | string | undefined;
|
|
439
451
|
}
|
|
440
452
|
|
|
441
|
-
export type
|
|
453
|
+
export type NumericDecayPlacement = {
|
|
454
|
+
decay?: number;
|
|
455
|
+
offset?: number;
|
|
456
|
+
origin?: number;
|
|
457
|
+
scale?: number;
|
|
458
|
+
}
|
|
442
459
|
|
|
443
460
|
export type Operator = 'and' | 'AND' | 'or' | 'OR'
|
|
444
461
|
|
|
@@ -573,7 +590,7 @@ export type RandomScoreFunction = {
|
|
|
573
590
|
seed?: number | string;
|
|
574
591
|
}
|
|
575
592
|
|
|
576
|
-
export type RangeQuery =
|
|
593
|
+
export type RangeQuery = RangeQueryBase & Record<string, any>
|
|
577
594
|
|
|
578
595
|
export type RangeQueryBase = QueryBase & {
|
|
579
596
|
relation?: RangeRelation;
|
|
@@ -614,6 +631,10 @@ export type RegexpQuery = string | (QueryBase & {
|
|
|
614
631
|
value: string;
|
|
615
632
|
})
|
|
616
633
|
|
|
634
|
+
export type RescoreContext = {
|
|
635
|
+
oversample_factor?: number;
|
|
636
|
+
}
|
|
637
|
+
|
|
617
638
|
export type ScriptQuery = QueryBase & {
|
|
618
639
|
script: Common.Script;
|
|
619
640
|
}
|
|
@@ -757,12 +778,16 @@ export type XyShape = {
|
|
|
757
778
|
type?: string;
|
|
758
779
|
}
|
|
759
780
|
|
|
760
|
-
export type
|
|
781
|
+
export type XyShapeQuery = QueryBase & {
|
|
782
|
+
ignore_unmapped?: boolean;
|
|
783
|
+
[key: string]: any | XyShapeQueryField;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
export type XyShapeQueryField = {
|
|
787
|
+
indexed_shape?: FieldLookup;
|
|
761
788
|
relation?: Common.GeoShapeRelation;
|
|
762
789
|
shape: XyShape;
|
|
763
790
|
}
|
|
764
791
|
|
|
765
|
-
export type
|
|
766
|
-
|
|
767
|
-
export type ZeroTermsQuery = 'all' | 'none'
|
|
792
|
+
export type ZeroTermsQuery = 'all' | 'ALL' | 'none' | 'NONE'
|
|
768
793
|
|