@opensearch-project/opensearch 3.0.0 → 3.2.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 +162 -3
- 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/search.d.ts +1 -0
- 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 -17
- 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/{cat._common.d.ts → cat.segment_replication.d.ts} +1 -18
- package/api/_types/cat.snapshots.d.ts +1 -1
- package/api/_types/index.d.ts +233 -0
- package/api/_types/ingest._common.d.ts +3 -40
- package/api/_types/ml._common.d.ts +293 -7
- package/api/_types/nodes.info.d.ts +17 -5
- 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.d.ts +2 -2
- 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.d.ts +1 -1
- package/api/cat/nodes.js +2 -2
- package/api/cat/pendingTasks.js +1 -1
- package/api/cat/pitSegments.d.ts +2 -2
- 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.d.ts +2 -2
- 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/index.d.ts +76 -4
- package/api/ml/_api.js +108 -0
- package/api/ml/chunkModel.d.ts +37 -0
- package/api/ml/chunkModel.js +53 -0
- package/api/ml/createController.d.ts +39 -0
- package/api/ml/createController.js +50 -0
- package/api/ml/createMemory.d.ts +36 -0
- package/api/ml/createMemory.js +47 -0
- package/api/ml/createMessage.d.ts +42 -0
- package/api/ml/createMessage.js +50 -0
- package/api/ml/createModelMeta.d.ts +46 -0
- package/api/ml/createModelMeta.js +47 -0
- package/api/ml/deleteController.d.ts +30 -0
- package/api/ml/deleteController.js +49 -0
- package/api/ml/deleteMemory.d.ts +31 -0
- package/api/ml/deleteMemory.js +49 -0
- package/api/ml/executeAgent.d.ts +36 -0
- package/api/ml/executeAgent.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 +30 -0
- package/api/ml/getMemory.js +49 -0
- package/api/ml/getMessage.d.ts +30 -0
- package/api/ml/getMessage.js +49 -0
- package/api/ml/getMessageTraces.d.ts +35 -0
- package/api/ml/getMessageTraces.js +51 -0
- package/api/ml/getModel.d.ts +30 -0
- package/api/ml/getModel.js +49 -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/loadModel.d.ts +33 -0
- package/api/ml/loadModel.js +49 -0
- package/api/ml/predictModel.d.ts +36 -0
- package/api/ml/predictModel.js +50 -0
- package/api/ml/registerModel.d.ts +8 -3
- package/api/ml/registerModelMeta.d.ts +46 -0
- package/api/ml/registerModelMeta.js +47 -0
- package/api/ml/searchAgents.d.ts +36 -0
- package/api/ml/searchAgents.js +47 -0
- package/api/ml/searchMemory.d.ts +36 -0
- package/api/ml/searchMemory.js +47 -0
- package/api/ml/searchMessage.d.ts +37 -0
- package/api/ml/searchMessage.js +50 -0
- package/api/ml/searchModels.js +1 -1
- package/api/ml/searchTasks.d.ts +36 -0
- package/api/ml/searchTasks.js +47 -0
- package/api/ml/undeployModel.d.ts +8 -1
- package/api/ml/undeployModel.js +5 -5
- package/api/ml/unloadModel.d.ts +37 -0
- package/api/ml/unloadModel.js +49 -0
- package/api/ml/updateController.d.ts +37 -0
- package/api/ml/updateController.js +50 -0
- package/api/ml/updateMemory.d.ts +35 -0
- package/api/ml/updateMemory.js +50 -0
- package/api/ml/updateMessage.d.ts +40 -0
- package/api/ml/updateMessage.js +50 -0
- package/api/ml/updateModel.d.ts +44 -0
- package/api/ml/updateModel.js +50 -0
- package/api/ml/uploadChunk.d.ts +37 -0
- package/api/ml/uploadChunk.js +53 -0
- package/api/ml/uploadModel.d.ts +42 -0
- package/api/ml/uploadModel.js +47 -0
- package/index.d.ts +2 -0
- 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
|
@@ -78,7 +78,7 @@ export type byte = number
|
|
|
78
78
|
|
|
79
79
|
export type ByteCount = number
|
|
80
80
|
|
|
81
|
-
export type ByteUnit = 'b' | '
|
|
81
|
+
export type ByteUnit = 'b' | 'kb' | 'k' | 'mb' | 'm' | 'gb' | 'g' | 'tb' | 't' | 'pb' | 'p'
|
|
82
82
|
|
|
83
83
|
export type ClusterDetails = {
|
|
84
84
|
_shards?: ShardStatistics;
|
|
@@ -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;
|
|
@@ -280,11 +279,6 @@ export type HealthStatus = 'green' | 'GREEN' | 'yellow' | 'YELLOW' | 'red' | 'RE
|
|
|
280
279
|
|
|
281
280
|
export type Host = string
|
|
282
281
|
|
|
283
|
-
export type HourAndMinute = {
|
|
284
|
-
hour: number[];
|
|
285
|
-
minute: number[];
|
|
286
|
-
}
|
|
287
|
-
|
|
288
282
|
export type HttpHeaders = Record<string, StringOrStringArray>
|
|
289
283
|
|
|
290
284
|
export type HumanReadableByteCount = string
|
|
@@ -422,7 +416,6 @@ export type NodeShard = {
|
|
|
422
416
|
primary: boolean;
|
|
423
417
|
recovery_source?: Record<string, Id>;
|
|
424
418
|
relocating_node?: NodeId | undefined;
|
|
425
|
-
relocation_failure_info?: RelocationFailureInfo;
|
|
426
419
|
shard: number;
|
|
427
420
|
state: Indices_Stats.ShardRoutingState;
|
|
428
421
|
unassigned_info?: Cluster_AllocationExplain.UnassignedInformation;
|
|
@@ -518,10 +511,6 @@ export type RefreshStats = {
|
|
|
518
511
|
|
|
519
512
|
export type RelationName = string
|
|
520
513
|
|
|
521
|
-
export type RelocationFailureInfo = {
|
|
522
|
-
failed_attempts: number;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
514
|
export type RemoteStoreDownloadStats = {
|
|
526
515
|
total_download_size: RemoteStoreUploadDownloadStats;
|
|
527
516
|
total_time_spent?: Duration;
|
|
@@ -633,8 +622,6 @@ export type RrfRank = RankBase & {
|
|
|
633
622
|
window_size?: number;
|
|
634
623
|
}
|
|
635
624
|
|
|
636
|
-
export type ScheduleTimeOfDay = string | HourAndMinute
|
|
637
|
-
|
|
638
625
|
export type ScoreSort = {
|
|
639
626
|
order?: SortOrder;
|
|
640
627
|
}
|
|
@@ -773,7 +760,7 @@ export type short = number
|
|
|
773
760
|
|
|
774
761
|
export type SlicedScroll = {
|
|
775
762
|
field?: Field;
|
|
776
|
-
id:
|
|
763
|
+
id: number;
|
|
777
764
|
max: number;
|
|
778
765
|
}
|
|
779
766
|
|
|
@@ -849,7 +836,7 @@ export type ThreadInfo = {
|
|
|
849
836
|
|
|
850
837
|
export type TimeOfDay = string
|
|
851
838
|
|
|
852
|
-
export type TimeUnit = '
|
|
839
|
+
export type TimeUnit = 'nanos' | 'micros' | 'ms' | 's' | 'm' | 'h' | 'd'
|
|
853
840
|
|
|
854
841
|
export type TimeZone = string
|
|
855
842
|
|
|
@@ -19,7 +19,7 @@ import * as Common from './_common'
|
|
|
19
19
|
export type FieldCapability = {
|
|
20
20
|
aggregatable: boolean;
|
|
21
21
|
indices?: Common.Indices;
|
|
22
|
-
meta?:
|
|
22
|
+
meta?: Record<string, string[]>;
|
|
23
23
|
metadata_field?: boolean;
|
|
24
24
|
non_aggregatable_indices?: Common.Indices;
|
|
25
25
|
non_searchable_indices?: Common.Indices;
|
|
@@ -26,15 +26,3 @@ export type PitDetail = {
|
|
|
26
26
|
pit_id?: string;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export type PitsDetailsDeleteAll = {
|
|
30
|
-
pit_id?: string;
|
|
31
|
-
successful?: boolean;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export type ShardStatistics = {
|
|
35
|
-
failed?: number;
|
|
36
|
-
skipped?: number;
|
|
37
|
-
successful?: number;
|
|
38
|
-
total?: number;
|
|
39
|
-
}
|
|
40
|
-
|
|
@@ -32,7 +32,7 @@ export type RankEvalHit = {
|
|
|
32
32
|
|
|
33
33
|
export type RankEvalHitItem = {
|
|
34
34
|
hit: RankEvalHit;
|
|
35
|
-
rating?:
|
|
35
|
+
rating?: number;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export type RankEvalMetric = {
|
|
@@ -49,7 +49,7 @@ export type RankEvalMetricBase = {
|
|
|
49
49
|
|
|
50
50
|
export type RankEvalMetricDetail = {
|
|
51
51
|
hits: RankEvalHitItem[];
|
|
52
|
-
metric_details: Record<string, Record<string,
|
|
52
|
+
metric_details: Record<string, Record<string, any>>;
|
|
53
53
|
metric_score: number;
|
|
54
54
|
unrated_docs: UnratedDocument[];
|
|
55
55
|
}
|
|
@@ -81,7 +81,7 @@ export type RankEvalQuery = {
|
|
|
81
81
|
|
|
82
82
|
export type RankEvalRequestItem = {
|
|
83
83
|
id: Common.Id;
|
|
84
|
-
params?: Record<string,
|
|
84
|
+
params?: Record<string, any>;
|
|
85
85
|
ratings: DocumentRating[];
|
|
86
86
|
request?: RankEvalQuery;
|
|
87
87
|
template_id?: Common.Id;
|
|
@@ -16,24 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
18
|
|
|
19
|
-
export type
|
|
20
|
-
committed?: string;
|
|
21
|
-
compound?: string;
|
|
22
|
-
'docs.count'?: string;
|
|
23
|
-
'docs.deleted'?: string;
|
|
24
|
-
generation?: string;
|
|
25
|
-
index?: string;
|
|
26
|
-
ip?: string;
|
|
27
|
-
prirep?: string;
|
|
28
|
-
searchable?: string;
|
|
29
|
-
segment?: string;
|
|
30
|
-
shard?: string;
|
|
31
|
-
size?: string;
|
|
32
|
-
'size.memory'?: string;
|
|
33
|
-
version?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export type CatSegmentReplicationRecord = {
|
|
19
|
+
export type SegmentReplicationRecord = {
|
|
37
20
|
bytes?: string;
|
|
38
21
|
bytes_behind?: string;
|
|
39
22
|
bytes_fetched?: string;
|
|
@@ -26,7 +26,7 @@ export type SnapshotsRecord = {
|
|
|
26
26
|
reason?: string;
|
|
27
27
|
repository?: string;
|
|
28
28
|
start_epoch?: Common.StringifiedEpochTimeUnitSeconds;
|
|
29
|
-
start_time?: Common.
|
|
29
|
+
start_time?: Common.TimeOfDay;
|
|
30
30
|
status?: string;
|
|
31
31
|
successful_shards?: string;
|
|
32
32
|
total_shards?: string;
|