@@ -8,9 +8,11 @@ components:
8
8
schemas :
9
9
Type :
10
10
type : string
11
+ description : The type of document or resource.
11
12
x-version-removed : ' 2.0'
12
13
Id :
13
14
type : string
15
+ description : The unique identifier for a resource.
14
16
AcknowledgedResponseBase :
15
17
type : object
16
18
properties :
@@ -20,137 +22,164 @@ components:
20
22
required :
21
23
- acknowledged
22
24
DocStatus :
23
- description : |-
24
- The item level REST category class codes during indexing.
25
+ description : The item level HTTP response status code during indexing.
25
26
type : object
26
27
properties :
27
28
1xx :
28
29
type : integer
29
30
format : int32
31
+ description : The number of informational responses.
30
32
2xx :
31
33
type : integer
32
34
format : int32
35
+ description : The number of successful responses.
33
36
3xx :
34
37
type : integer
35
38
format : int32
39
+ description : The number of redirection responses.
36
40
4xx :
37
41
type : integer
38
42
format : int32
43
+ description : The number of client error responses.
39
44
5xx :
40
45
type : integer
41
46
format : int32
47
+ description : The number of server error responses.
42
48
Duration :
43
- description : |-
44
- A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and
45
- `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
49
+ 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.
46
50
pattern : ^(?:(-1)|([0-9\.]+)(?:d|h|m|s|ms|micros|nanos))$
47
51
type : string
48
52
Metadata :
49
53
type : object
54
+ description : The custom metadata attached to a resource.
50
55
additionalProperties : true
51
56
GeoBounds :
52
57
description : |-
53
58
A geo-bounding box. It can be represented in the following ways:
54
- - As 4 top/bottom/left/right coordinates.
55
- - As 2 top_left/bottom_right points.
56
- - As 2 top_right/bottom_left points.
57
- - As a Well Known Text (WKT) bounding box.
59
+ - As 4 top/bottom/left/right coordinates.
60
+ - As 2 top_left/bottom_right points.
61
+ - As 2 top_right/bottom_left points.
62
+ - As a Well Known Text (WKT) bounding box.
58
63
oneOf :
59
64
- title : coords
65
+ description : The bounds specified using coordinate values.
60
66
$ref : ' #/components/schemas/CoordsGeoBounds'
61
67
- title : tlbr
68
+ description : The bounds specified using upper-left and lower-right points.
62
69
$ref : ' #/components/schemas/TopLeftBottomRightGeoBounds'
63
70
- title : trbl
71
+ description : The bounds specified using upper-right and lower-left points.
64
72
$ref : ' #/components/schemas/TopRightBottomLeftGeoBounds'
65
73
- title : wkt
74
+ description : The bounds specified using WKT format.
66
75
$ref : ' #/components/schemas/WktGeoBounds'
67
76
CoordsGeoBounds :
68
77
type : object
78
+ description : The geographical bounds specified using coordinate values.
69
79
properties :
70
80
top :
71
81
type : number
72
82
format : double
83
+ description : The top boundary latitude.
73
84
bottom :
74
85
type : number
75
86
format : double
87
+ description : The bottom boundary latitude.
76
88
left :
77
89
type : number
78
90
format : double
91
+ description : The left boundary longitude.
79
92
right :
80
93
type : number
81
94
format : double
95
+ description : The right boundary longitude.
82
96
required :
83
97
- bottom
84
98
- left
85
99
- right
86
100
- top
87
101
TopLeftBottomRightGeoBounds :
88
102
type : object
103
+ description : The geographical bounds specified using upper-left and lower-right points.
89
104
properties :
90
105
top_left :
91
106
$ref : ' #/components/schemas/GeoLocation'
107
+ description : The upper-left corner coordinates.
92
108
bottom_right :
93
109
$ref : ' #/components/schemas/GeoLocation'
110
+ description : The lower-right corner coordinates.
94
111
required :
95
112
- bottom_right
96
113
- top_left
97
114
GeoLocation :
98
- description : |-
115
+ description : |-
99
116
A latitude/longitude as a two-dimensional point. It can be represented in the following ways:
100
- - As a `{lat, long}` object.
101
- - As a geohash value.
102
- - As a `[lon, lat]` array.
103
- - As a string in `" <lat>, <lon>" ` or WKT point format.
117
+ - As a `{lat, long}` object.
118
+ - As a geohash value.
119
+ - As a `[lon, lat]` array.
120
+ - As a string in `<lat>, <lon>` or WKT point format.
104
121
oneOf :
105
122
- title : latlon
123
+ description : The location specified using latitude and longitude coordinates.
106
124
$ref : ' #/components/schemas/LatLonGeoLocation'
107
125
- title : geohash
126
+ description : The location specified using a geohash value.
108
127
$ref : ' #/components/schemas/GeoHashLocation'
109
128
- title : coords
129
+ description : The location specified as an array of `[longitude, latitude]`.
110
130
type : array
111
131
items :
112
132
type : number
113
133
format : double
114
134
- title : text
135
+ description : The location specified as a string in `lat,lon` or WKT format.
115
136
type : string
116
137
LatLonGeoLocation :
117
138
type : object
139
+ description : The geographical location specified using latitude and longitude.
118
140
properties :
119
141
lat :
120
- description : Latitude
142
+ description : The latitude coordinate.
121
143
type : number
122
144
format : double
123
145
lon :
124
- description : Longitude
146
+ description : The longitude coordinate.
125
147
type : number
126
148
format : double
127
149
required :
128
150
- lat
129
151
- lon
130
152
GeoHashLocation :
131
153
type : object
154
+ description : The geographical location specified using a geohash.
132
155
properties :
133
156
geohash :
134
157
$ref : ' #/components/schemas/GeoHash'
135
158
required :
136
159
- geohash
137
160
GeoHash :
138
161
type : string
162
+ description : The geohash string representation of a geographical location.
139
163
TopRightBottomLeftGeoBounds :
140
164
type : object
165
+ description : The geographical bounds specified using upper-right and lower-left points.
141
166
properties :
142
167
top_right :
143
168
$ref : ' #/components/schemas/GeoLocation'
169
+ description : The upper-right corner coordinates.
144
170
bottom_left :
145
171
$ref : ' #/components/schemas/GeoLocation'
172
+ description : The lower-left corner coordinates.
146
173
required :
147
174
- bottom_left
148
175
- top_right
149
176
WktGeoBounds :
150
177
type : object
178
+ description : The geographical bounds specified using Well-Known Text (WKT) format.
151
179
properties :
152
180
wkt :
153
181
type : string
182
+ description : The WKT string representation of the geographical bounds.
154
183
required :
155
184
- wkt
156
185
XyLocation :
@@ -162,17 +191,21 @@ components:
162
191
- As a string in `"x, y"` or WKT point format.
163
192
oneOf :
164
193
- title : cartesian
194
+ description : The location specified using x and y coordinates.
165
195
$ref : ' #/components/schemas/XyCartesianCoordinates'
166
196
- title : coords
197
+ description : The location specified as an array of [x, y] coordinates.
167
198
type : array
168
199
items :
169
200
type : number
170
201
format : double
171
202
- title : text
203
+ description : The location specified as a string in `x,y` or WKT format.
172
204
type : string
173
205
XyCartesianCoordinates :
174
206
x-version-added : ' 2.4'
175
207
type : object
208
+ description : The Cartesian coordinates specified using x and y values.
176
209
properties :
177
210
x :
178
211
description : The x coordinate.
@@ -524,52 +557,75 @@ components:
524
557
MultiTermQueryRewrite :
525
558
oneOf :
526
559
- type : string
527
- enum :
528
- - constant_score
529
- - constant_score_boolean
530
- - scoring_boolean
560
+ const : constant_score
561
+ description : The constant score rewrite method assigns the same score to all matching documents.
562
+ - type : string
563
+ const : constant_score_boolean
564
+ description : The constant score Boolean rewrite method creates a Boolean query with a constant score.
565
+ - type : string
566
+ const : scoring_boolean
567
+ description : The scoring Boolean rewrite method creates a Boolean query that scores each term separately.
568
+ - type : string
569
+ pattern : top_terms(_blended_freqs|_boost)?_\d+
570
+ description : The top terms query rewrite method with optional parameters.
531
571
- type : string
532
572
pattern : top_terms(_blended_freqs|_boost)?_\d+
573
+ description : The top terms query rewrite method with optional parameters.
533
574
Fuzziness :
534
575
oneOf :
535
576
- type : string
577
+ description : The fuzziness value as `AUTO`, or a string edit distance.
536
578
- type : integer
579
+ description : The fuzziness value as a numeric edit distance.
537
580
format : int32
538
581
GeoDistanceType :
539
- type : string
540
- enum :
541
- - arc
542
- - plane
582
+ oneOf :
583
+ - type : string
584
+ const : arc
585
+ description : The arc calculation method uses great circle distance.
586
+ - type : string
587
+ const : plane
588
+ description : The plane calculation method uses faster but less accurate flat-earth distance.
543
589
Name :
544
590
type : string
591
+ description : The name of a resource or configuration element.
545
592
ScriptField :
546
593
type : object
594
+ description : The configuration for a script field.
547
595
properties :
548
596
script :
549
597
$ref : ' #/components/schemas/Script'
598
+ description : The script to execute for this field.
550
599
ignore_failure :
551
600
type : boolean
601
+ description : Whether to ignore failures during script execution.
552
602
required :
553
603
- script
554
604
Sort :
555
605
oneOf :
556
606
- $ref : ' #/components/schemas/SortOptions'
607
+ description : The single sort option.
557
608
- type : array
609
+ description : The list of sort options.
558
610
items :
559
611
$ref : ' #/components/schemas/SortOptions'
560
612
SortOptions :
561
613
oneOf :
562
614
- type : string
563
615
const : _score
616
+ description : Sort by document score.
564
617
- type : string
565
618
const : _doc
619
+ description : Sort by document index order.
566
620
- type : string
621
+ description : Sort by field name.
567
622
not :
568
623
type : string
569
624
enum :
570
625
- _doc
571
626
- _score
572
627
- type : object
628
+ description : Sort by score options.
573
629
properties :
574
630
_score :
575
631
$ref : ' #/components/schemas/ScoreSort'
@@ -582,6 +638,7 @@ components:
582
638
minProperties : 1
583
639
maxProperties : 1
584
640
- type : object
641
+ description : Sort by field options.
585
642
propertyNames :
586
643
allOf :
587
644
- $ref : ' #/components/schemas/Field'
@@ -599,30 +656,46 @@ components:
599
656
FieldSort :
600
657
oneOf :
601
658
- title : order
659
+ description : The sort order direction.
602
660
$ref : ' #/components/schemas/SortOrder'
603
661
- type : object
662
+ description : The detailed field sort options.
604
663
properties :
605
664
missing :
606
665
$ref : ' #/components/schemas/FieldValue'
666
+ description : The value to use when the field is missing.
607
667
mode :
608
668
$ref : ' #/components/schemas/SortMode'
669
+ description : The mode for sorting on array fields.
609
670
nested :
610
671
$ref : ' #/components/schemas/NestedSortValue'
672
+ description : The nested path sort options.
611
673
order :
612
674
$ref : ' #/components/schemas/SortOrder'
675
+ description : The sort order direction.
613
676
unmapped_type :
614
677
$ref : ' _common.mapping.yaml#/components/schemas/FieldType'
678
+ description : The type to use for unmapped fields.
615
679
numeric_type :
616
680
$ref : ' #/components/schemas/FieldSortNumericType'
681
+ description : The numeric type to use for sorting.
617
682
format :
618
683
type : string
684
+ description : The format to use for the sort values.
619
685
FieldSortNumericType :
620
- type : string
621
- enum :
622
- - date
623
- - date_nanos
624
- - double
625
- - long
686
+ oneOf :
687
+ - type : string
688
+ const : date
689
+ description : The field contains date values.
690
+ - type : string
691
+ const : date_nanos
692
+ description : The field contains date values with nanosecond precision.
693
+ - type : string
694
+ const : double
695
+ description : The field contains double-precision floating-point values.
696
+ - type : string
697
+ const : long
698
+ description : The field contains long integer values.
626
699
ScoreSort :
627
700
type : object
628
701
properties :
0 commit comments