-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy path_common.yaml
More file actions
2916 lines (2908 loc) · 102 KB
/
Copy path_common.yaml
File metadata and controls
2916 lines (2908 loc) · 102 KB
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.1.0
info:
title: Schemas of `_common` Category
description: Schemas of `_common` category.
version: 1.0.0
paths: {}
components:
schemas:
Type:
type: string
description: The type of document or resource.
x-version-removed: '2.0'
Id:
type: string
description: The unique identifier for a resource.
AcknowledgedResponseBase:
type: object
properties:
acknowledged:
description: For a successful response, this value is always true. On failure, an exception is returned instead.
type: boolean
required:
- acknowledged
DocStatus:
description: The item level HTTP response status code during indexing.
type: object
properties:
1xx:
type: integer
format: int32
description: The number of informational responses.
2xx:
type: integer
format: int32
description: The number of successful responses.
3xx:
type: integer
format: int32
description: The number of redirection responses.
4xx:
type: integer
format: int32
description: The number of client error responses.
5xx:
type: integer
format: int32
description: The number of server error responses.
Duration:
description: A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
pattern: ^(?:(-1)|([0-9\.]+)(?:d|h|m|s|ms|micros|nanos))$
type: string
Metadata:
type: object
description: The custom metadata attached to a resource.
additionalProperties: true
GeoBounds:
description: |-
A geo-bounding box. It can be represented in the following ways:
- As 4 top/bottom/left/right coordinates.
- As 2 top_left/bottom_right points.
- As 2 top_right/bottom_left points.
- As a Well Known Text (WKT) bounding box.
oneOf:
- title: coords
description: The bounds specified using coordinate values.
$ref: '#/components/schemas/CoordsGeoBounds'
- title: tlbr
description: The bounds specified using upper-left and lower-right points.
$ref: '#/components/schemas/TopLeftBottomRightGeoBounds'
- title: trbl
description: The bounds specified using upper-right and lower-left points.
$ref: '#/components/schemas/TopRightBottomLeftGeoBounds'
- title: wkt
description: The bounds specified using WKT format.
$ref: '#/components/schemas/WktGeoBounds'
CoordsGeoBounds:
type: object
description: The geographical bounds specified using coordinate values.
properties:
top:
type: number
format: double
description: The top boundary latitude.
bottom:
type: number
format: double
description: The bottom boundary latitude.
left:
type: number
format: double
description: The left boundary longitude.
right:
type: number
format: double
description: The right boundary longitude.
required:
- bottom
- left
- right
- top
TopLeftBottomRightGeoBounds:
type: object
description: The geographical bounds specified using upper-left and lower-right points.
properties:
top_left:
$ref: '#/components/schemas/GeoLocation'
description: The upper-left corner coordinates.
bottom_right:
$ref: '#/components/schemas/GeoLocation'
description: The lower-right corner coordinates.
required:
- bottom_right
- top_left
GeoLocation:
description: |-
A latitude/longitude as a two-dimensional point. It can be represented in the following ways:
- As a `{lat, long}` object.
- As a geohash value.
- As a `[lon, lat]` array.
- As a string in `<lat>, <lon>` or WKT point format.
oneOf:
- title: latlon
description: The location specified using latitude and longitude coordinates.
$ref: '#/components/schemas/LatLonGeoLocation'
- title: geohash
description: The location specified using a geohash value.
$ref: '#/components/schemas/GeoHashLocation'
- title: coords
description: The location specified as an array of `[longitude, latitude]`.
type: array
items:
type: number
format: double
- title: text
description: The location specified as a string in `lat,lon` or WKT format.
type: string
LatLonGeoLocation:
type: object
description: The geographical location specified using latitude and longitude.
properties:
lat:
description: The latitude coordinate.
type: number
format: double
lon:
description: The longitude coordinate.
type: number
format: double
required:
- lat
- lon
GeoHashLocation:
type: object
description: The geographical location specified using a geohash.
properties:
geohash:
$ref: '#/components/schemas/GeoHash'
required:
- geohash
GeoHash:
type: string
description: The geohash string representation of a geographical location.
TopRightBottomLeftGeoBounds:
type: object
description: The geographical bounds specified using upper-right and lower-left points.
properties:
top_right:
$ref: '#/components/schemas/GeoLocation'
description: The upper-right corner coordinates.
bottom_left:
$ref: '#/components/schemas/GeoLocation'
description: The lower-left corner coordinates.
required:
- bottom_left
- top_right
WktGeoBounds:
type: object
description: The geographical bounds specified using Well-Known Text (WKT) format.
properties:
wkt:
type: string
description: The WKT string representation of the geographical bounds.
required:
- wkt
XyLocation:
x-version-added: '2.4'
description: |-
A two-dimensional Cartesian point specified by x and y coordinates. It can be represented in the following ways:
- As an `{x, y}` object.
- As an `[x, y]` array.
- As a string in `"x, y"` or WKT point format.
oneOf:
- title: cartesian
description: The location specified using x and y coordinates.
$ref: '#/components/schemas/XyCartesianCoordinates'
- title: coords
description: The location specified as an array of [x, y] coordinates.
type: array
items:
type: number
format: double
- title: text
description: The location specified as a string in `x,y` or WKT format.
type: string
XyCartesianCoordinates:
x-version-added: '2.4'
type: object
description: The Cartesian coordinates specified using x and y values.
properties:
x:
description: The x coordinate.
type: number
format: double
y:
description: The y coordinate.
type: number
format: double
required:
- x
- y
EpochTimeUnitMillis:
$ref: '#/components/schemas/UnitMillis'
UnitMillis:
description: The time unit for milliseconds.
type: integer
format: int64
DurationLarge:
description: |-
A date histogram interval, similar to `Duration`, with support for additional units: `w` (week), `M` (month), `q` (quarter), and `y` (year).
type: string
FieldValue:
description: A field value.
type:
- boolean
- 'null'
- number
- string
Void:
description: |-
The absence of any type. This is commonly used in APIs that don't return a body.
Although "void" is generally used for a unit type that has only one value, this is interpreted as
the bottom type, which has no value. Most languages have a unit type, but few have a bottom type.
See https://en.m.wikipedia.org/wiki/Unit_type and https://en.m.wikipedia.org/wiki/Bottom_type.
type: object
GeoTile:
description: A map tile reference, represented as `{zoom}/{x}/{y}`.
type: string
IndexName:
type: string
Field:
description: The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields.
type: string
SequenceNumber:
type: integer
format: int64
description: The sequence number of the document.
VersionNumber:
type: integer
format: int64
SortResults:
type: array
items:
$ref: '#/components/schemas/FieldValue'
ClusterStatistics:
type: object
properties:
skipped:
type: integer
format: int32
successful:
type: integer
format: int32
total:
type: integer
format: int32
running:
type: integer
format: int32
partial:
type: integer
format: int32
failed:
type: integer
format: int32
details:
type: object
additionalProperties:
$ref: '#/components/schemas/ClusterDetails'
required:
- failed
- partial
- running
- skipped
- successful
- total
ClusterDetails:
type: object
properties:
status:
$ref: '#/components/schemas/ClusterSearchStatus'
indices:
type: string
took:
$ref: '#/components/schemas/DurationValueUnitMillis'
timed_out:
type: boolean
_shards:
$ref: '#/components/schemas/ShardStatistics'
failures:
type: array
items:
$ref: '#/components/schemas/ShardFailure'
required:
- indices
- status
- timed_out
ClusterSearchStatus:
type: string
enum:
- failed
- partial
- running
- skipped
- successful
DurationValueUnitMillis:
$ref: '#/components/schemas/UnitMillis'
ShardStatistics:
type: object
properties:
failed:
$ref: '#/components/schemas/uint'
successful:
$ref: '#/components/schemas/uint'
total:
$ref: '#/components/schemas/uint'
failures:
type: array
items:
$ref: '#/components/schemas/ShardFailure'
skipped:
$ref: '#/components/schemas/uint'
required:
- failed
- successful
- total
uint:
type: integer
ShardFailure:
type: object
properties:
index:
$ref: '#/components/schemas/IndexName'
node:
type: string
reason:
$ref: '#/components/schemas/ErrorCause'
shard:
type: integer
status:
type: string
required:
- reason
- shard
ErrorCause:
type: object
properties:
type:
description: The type of error.
type: string
reason:
description: A human-readable explanation of the error, in English.
type: string
stack_trace:
description: The server stack trace, present only if the `error_trace=true` parameter was sent with the request.
type: string
caused_by:
$ref: '#/components/schemas/ErrorCause'
root_cause:
type: array
items:
$ref: '#/components/schemas/ErrorCause'
suppressed:
type: array
items:
$ref: '#/components/schemas/ErrorCause'
required:
- type
additionalProperties:
title: metadata
description: Any additional information about the error.
DurationValueUnitNanos:
$ref: '#/components/schemas/UnitNanos'
UnitNanos:
description: Time unit for nanoseconds.
type: integer
format: int64
DurationValueUnitMicros:
$ref: '#/components/schemas/UnitMicros'
UnitMicros:
description: Time unit for microseconds.
type: integer
format: int64
ScrollId:
type: string
Routing:
type: string
description: The routing value for the document.
RoutingInQueryString:
$ref: '#/components/schemas/StringOrStringArray'
DateTime:
description: |-
A date and time, either as a string whose format depends on the context (defaulting to ISO_8601) or the
number of milliseconds since the epoch. OpenSearch accepts both as an input but will generally output a string.
representation.
oneOf:
- type: string
- $ref: '#/components/schemas/EpochTimeUnitMillis'
Indices:
description: |-
A comma-separated list of data streams, indexes, and aliases used to limit the request.
Supports wildcards (`*`).
To target all data streams and indexes, omit this parameter or use `*` or `_all`.
oneOf:
- $ref: '#/components/schemas/IndexName'
- type: array
items:
$ref: '#/components/schemas/IndexName'
Fields:
oneOf:
- $ref: '#/components/schemas/Field'
- type: array
items:
$ref: '#/components/schemas/Field'
ExpandWildcards:
description: Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
oneOf:
- $ref: '#/components/schemas/ExpandWildcard'
- type: array
items:
$ref: '#/components/schemas/ExpandWildcard'
ExpandWildcard:
oneOf:
- type: string
const: all
description: Match any index, including hidden ones.
- type: string
const: closed
description: Match closed, non-hidden indexes.
- type: string
const: hidden
description: Match hidden indexes. Must be combined with open, closed, or both.
- type: string
const: none
description: Wildcard expressions are not accepted.
- type: string
const: open
description: Match open, non-hidden indexes.
VersionString:
type: string
SearchType:
oneOf:
- type: string
const: dfs_query_then_fetch
description: Documents are scored using global term and document frequencies across all shards. This is usually slower but more accurate.
- type: string
const: query_then_fetch
description: Documents are scored using local term and document frequencies for the shard. This is usually faster but less accurate.
SuggestMode:
type: string
enum:
- always
- missing
- popular
MinimumShouldMatch:
description: The minimum number of terms that should match as an integer, percentage, or range.
oneOf:
- type: integer
format: int32
- type: string
Distance:
type: string
DateMath:
type: string
Script:
oneOf:
- title: inline
$ref: '#/components/schemas/InlineScript'
- title: stored
$ref: '#/components/schemas/StoredScriptId'
InlineScript:
oneOf:
- title: source
type: string
- allOf:
- $ref: '#/components/schemas/ScriptBase'
- type: object
properties:
lang:
$ref: '#/components/schemas/ScriptLanguage'
options:
type: object
additionalProperties:
type: string
source:
description: The script source.
type: string
required:
- source
ScriptLanguage:
anyOf:
- title: builtin
$ref: '#/components/schemas/BuiltinScriptLanguage'
- title: custom
type: string
BuiltinScriptLanguage:
type: string
enum:
- expression
- java
- mustache
- painless
ScriptBase:
type: object
properties:
params:
description: |-
Specifies any named parameters that are passed into the script as variables.
Use parameters instead of hard-coded values to decrease compilation time.
type: object
additionalProperties: true
StoredScriptId:
allOf:
- $ref: '#/components/schemas/ScriptBase'
- type: object
properties:
id:
$ref: '#/components/schemas/Id'
required:
- id
MultiTermQueryRewrite:
oneOf:
- type: string
const: constant_score
description: The constant score rewrite method assigns the same score to all matching documents.
- type: string
const: constant_score_boolean
description: The constant score Boolean rewrite method creates a Boolean query with a constant score.
- type: string
const: scoring_boolean
description: The scoring Boolean rewrite method creates a Boolean query that scores each term separately.
- type: string
pattern: top_terms(_blended_freqs|_boost)?_\d+
description: The top terms query rewrite method with optional parameters.
Fuzziness:
oneOf:
- type: string
description: The fuzziness value as `AUTO`, or a string edit distance.
- type: integer
description: The fuzziness value as a numeric edit distance.
format: int32
GeoDistanceType:
oneOf:
- type: string
const: arc
description: The arc calculation method uses great circle distance.
- type: string
const: plane
description: The plane calculation method uses faster but less accurate flat-earth distance.
Name:
type: string
description: The name of a resource or configuration element.
ScriptField:
type: object
description: The configuration for a script field.
properties:
script:
$ref: '#/components/schemas/Script'
description: The script to execute for this field.
ignore_failure:
type: boolean
description: Whether to ignore failures during script execution.
required:
- script
Sort:
oneOf:
- $ref: '#/components/schemas/SortOptions'
description: The single sort option.
- type: array
description: The list of sort options.
items:
$ref: '#/components/schemas/SortOptions'
SortOptions:
oneOf:
- type: string
const: _score
description: Sort by document score.
- type: string
const: _doc
description: Sort by document index order.
- type: string
description: Sort by field name.
not:
type: string
enum:
- _doc
- _score
- type: object
description: Sort by score options.
properties:
_score:
$ref: '#/components/schemas/ScoreSort'
_doc:
$ref: '#/components/schemas/ScoreSort'
_geo_distance:
$ref: '#/components/schemas/GeoDistanceSort'
_script:
$ref: '#/components/schemas/ScriptSort'
minProperties: 1
maxProperties: 1
- type: object
description: Sort by field options.
propertyNames:
allOf:
- $ref: '#/components/schemas/Field'
- not:
type: string
enum:
- _doc
- _geo_distance
- _score
- _script
additionalProperties:
$ref: '#/components/schemas/FieldSort'
minProperties: 1
maxProperties: 1
FieldSort:
oneOf:
- title: order
description: The sort order direction.
$ref: '#/components/schemas/SortOrder'
- type: object
description: The detailed field sort options.
properties:
missing:
$ref: '#/components/schemas/FieldValue'
description: The value to use when the field is missing.
mode:
$ref: '#/components/schemas/SortMode'
description: The mode for sorting on array fields.
nested:
$ref: '#/components/schemas/NestedSortValue'
description: The nested path sort options.
order:
$ref: '#/components/schemas/SortOrder'
description: The sort order direction.
unmapped_type:
$ref: '_common.mapping.yaml#/components/schemas/FieldType'
description: The type to use for unmapped fields.
numeric_type:
$ref: '#/components/schemas/FieldSortNumericType'
description: The numeric type to use for sorting.
format:
type: string
description: The format to use for the sort values.
FieldSortNumericType:
oneOf:
- type: string
const: date
description: The field contains date values.
- type: string
const: date_nanos
description: The field contains date values with nanosecond precision.
- type: string
const: double
description: The field contains double-precision floating-point values.
- type: string
const: long
description: The field contains long integer values.
ScoreSort:
type: object
properties:
order:
$ref: '#/components/schemas/SortOrder'
SortOrder:
type: string
description: The direction of the sort order.
enum:
- asc
- desc
GeoDistanceSort:
type: object
description: The options for sorting by geo distance.
properties:
mode:
$ref: '#/components/schemas/SortMode'
description: The mode for sorting on array or multi-valued fields.
distance_type:
$ref: '#/components/schemas/GeoDistanceType'
description: The algorithm to use for distance calculation.
ignore_unmapped:
type: boolean
description: Whether to ignore unmapped fields and not sort based on them.
nested:
$ref: '#/components/schemas/NestedSortValue'
order:
$ref: '#/components/schemas/SortOrder'
description: The direction of the sort order.
unit:
$ref: '#/components/schemas/DistanceUnit'
description: The unit of distance measurement.
validation_method:
$ref: '_common.query_dsl.yaml#/components/schemas/GeoValidationMethod'
additionalProperties:
type: array
description: The geo points to use for distance calculation.
items:
$ref: '#/components/schemas/GeoLocation'
SortMode:
oneOf:
- type: string
const: avg
description: Use the average of all values.
- type: string
const: max
description: Use the maximum value.
- type: string
const: median
description: Use the median value.
- type: string
const: min
description: Use the minimum value.
- type: string
const: sum
description: Use the sum of all values.
DistanceUnit:
oneOf:
- title: centimeters
type: string
const: cm
- title: feet
type: string
const: ft
- title: inches
type: string
const: in
- title: kilometers
type: string
const: km
- title: meters
type: string
const: m
- title: miles
type: string
const: mi
- title: millimeters
type: string
const: mm
- title: nautical miles
type: string
const: nmi
- title: yards
type: string
const: yd
ScriptSort:
type: object
properties:
order:
$ref: '#/components/schemas/SortOrder'
script:
$ref: '#/components/schemas/Script'
description: The script to use for sorting.
type:
$ref: '#/components/schemas/ScriptSortType'
description: The type of the script sort value.
mode:
$ref: '#/components/schemas/SortMode'
description: The mode for sorting on array or multi-valued fields.
nested:
$ref: '#/components/schemas/NestedSortValue'
description: The nested path and filter for nested sorting.
required:
- script
ScriptSortType:
oneOf:
- type: string
const: number
description: The script returns a numeric value.
- type: string
const: string
description: The script returns a string value.
- type: string
const: version
description: The script returns a version value.
NestedSortValue:
type: object
properties:
filter:
$ref: '_common.query_dsl.yaml#/components/schemas/QueryContainer'
description: The filter to apply to nested objects.
max_children:
type: integer
format: int32
description: The maximum number of children to consider for sorting.
nested:
$ref: '#/components/schemas/NestedSortValue'
description: How to sort hierarchical nested objects.
path:
$ref: '#/components/schemas/Field'
description: The path to the nested objects.
required:
- path
RelationName:
type: string
description: The name of a relation in a join field.
Ids:
oneOf:
- $ref: '#/components/schemas/Id'
description: A single document ID.
- type: array
items:
$ref: '#/components/schemas/Id'
description: An array of document IDs.
VersionType:
oneOf:
- type: string
const: external
description: The version number must be higher than the current version.
- type: string
const: external_gte
description: The version number must be higher than or equal to the current version.
- type: string
const: force
description: The version number is forced to be the given value.
- type: string
const: internal
description: The version number is managed internally by OpenSearch.
TimeZone:
type: string
description: The time zone identifier.
DateFormat:
type: string
description: The date format pattern.
GeoHashPrecision:
description: The level of geohash precision, which can be expressed as a geohash length between 1 and 12 or as a distance measure, such as "1km" or "10m".
oneOf:
- title: geohash_length
type: integer
format: int32
description: The geohash precision as a geohash length.
- title: distance
type: string
description: The geohash precision as a distance measure.
GeoTilePrecision:
type: number
description: The precision level for geo tile calculations.
EmptyObject:
type: object
description: An empty object with no properties.
SlicedScroll:
type: object
description: The configuration for a sliced scroll request.
properties:
field:
$ref: '#/components/schemas/Field'
description: The field to slice on.
id:
type: integer
format: int32
description: The ID of the slice.
max:
type: integer
format: int32
description: The maximum number of slices.
required:
- id
- max
NodeName:
type: string
description: The name of the node.
Refresh:
oneOf:
- type: boolean
description: Whether to refresh the affected shards immediately.
- type: string
const: 'false'
description: Do not refresh the affected shards.
- type: string
const: 'true'
description: Refresh the affected shards immediately.
- type: string
const: wait_for
description: Wait for the changes to become visible before replying.
WaitForActiveShards:
description: Waits until the specified number of shards is active before returning a response. Use `all` for all shards.
oneOf:
- title: count
type: integer
description: The number of active shards to wait for.
- title: option
$ref: '#/components/schemas/WaitForActiveShardOptions'
description: Determines how many shards to wait for.
WaitForActiveShardOptions:
oneOf:
- type: string
const: all
description: Wait for all shards to be active.
- type: string
const: index-setting
description: Wait for the number of shards specified in the index settings.
InlineGetDictUserDefined:
type: object
description: The inline get operation results for user-defined dictionaries.
properties:
fields:
type: object
description: The fields retrieved from the document.
additionalProperties:
type: object
found:
type: boolean
description: Whether the document was found.
_seq_no:
$ref: '#/components/schemas/SequenceNumber'
_primary_term:
type: integer
format: int32
description: The primary term of the document.
_routing:
$ref: '#/components/schemas/Routing'
_source:
type: object
description: The source of the document.
additionalProperties: true
required:
- found
Names:
description: A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
oneOf:
- $ref: '#/components/schemas/Name'
- type: array
items:
$ref: '#/components/schemas/Name'
NodeIds:
description: A comma-separated list of node IDs used to filter results. Supports [node filters](https://opensearch.org/docs/latest/api-reference/nodes-apis/index/#node-filters).
oneOf:
- $ref: '#/components/schemas/NodeId'
- type: array
items:
$ref: '#/components/schemas/NodeId'
NodeId:
type: string
description: The unique identifier of a node.
HumanReadableByteCount:
type: string
pattern: '(?:(-1)|(0)|\d+(\.\d+)?(b|kb|k|mb|m|gb|g|tb|t|pb|p))'
description: The unique identifier of a node.
ByteUnit:
# eslint-disable yml/sort-sequence-values -- The order of `kb` & `k` etc. is important for preferring the more correct variant.
oneOf:
- title: bytes
type: string
const: b
- title: kilo_bytes
type: string
enum:
- kb
- k
- title: mega_bytes
type: string
enum:
- mb
- m
- title: giga_bytes
type: string
enum:
- gb
- g
- title: tera_bytes
type: string
enum:
- tb
- t
- title: peta_bytes
type: string
enum:
- pb
- p
# eslint-enable yml/sort-sequence-values
ByteCount:
type: integer
format: int64
description: The size in bytes.
PercentageNumber:
type: number
format: double
description: The percentage value as a number.
PercentageString:
type: string