Skip to content

Commit 352e620

Browse files
authored
Remove unsupported runtime fields types (opensearch-project#634)
* Remove unsupported runtime fields types Signed-off-by: Thomas Farr <tsfarr@amazon.com> * Update changelog Signed-off-by: Thomas Farr <tsfarr@amazon.com> --------- Signed-off-by: Thomas Farr <tsfarr@amazon.com>
1 parent 56081a4 commit 352e620

8 files changed

+1
-129
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
134134
- Removed the ability to skip an individual spec test ([#358](https://github.com/opensearch-project/opensearch-api-specification/pull/358))
135135
- Removed `shape` query ([#531](https://github.com/opensearch-project/opensearch-api-specification/pull/531))
136136
- Removed unsupported DataStream Lifecycle types ([#600](https://github.com/opensearch-project/opensearch-api-specification/pull/600))
137+
- Removed unsupported runtime field types ([#634](https://github.com/opensearch-project/opensearch-api-specification/pull/634))
137138

138139
### Fixed
139140

spec/namespaces/_core.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -2349,8 +2349,6 @@ components:
23492349
$ref: '../schemas/_common.yaml#/components/schemas/Fields'
23502350
index_filter:
23512351
$ref: '../schemas/_common.query_dsl.yaml#/components/schemas/QueryContainer'
2352-
runtime_mappings:
2353-
$ref: '../schemas/_common.mapping.yaml#/components/schemas/RuntimeFields'
23542352
description: An index filter specified with the Query DSL
23552353
index:
23562354
content:
@@ -2647,8 +2645,6 @@ components:
26472645
$ref: '../schemas/_common.yaml#/components/schemas/Fields'
26482646
pit:
26492647
$ref: '../schemas/_core.search.yaml#/components/schemas/PointInTimeReference'
2650-
runtime_mappings:
2651-
$ref: '../schemas/_common.mapping.yaml#/components/schemas/RuntimeFields'
26522648
stats:
26532649
description: |-
26542650
Stats groups to associate with the search.

spec/namespaces/indices.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -2103,8 +2103,6 @@ components:
21032103
$ref: '../schemas/_common.mapping.yaml#/components/schemas/RoutingField'
21042104
_source:
21052105
$ref: '../schemas/_common.mapping.yaml#/components/schemas/SourceField'
2106-
runtime:
2107-
$ref: '../schemas/_common.mapping.yaml#/components/schemas/RuntimeFields'
21082106
description: The mapping definition
21092107
required: true
21102108
indices.put_settings:

spec/schemas/_common.mapping.yaml

-51
Original file line numberDiff line numberDiff line change
@@ -6,53 +6,6 @@ info:
66
paths: {}
77
components:
88
schemas:
9-
RuntimeFields:
10-
type: object
11-
additionalProperties:
12-
$ref: '#/components/schemas/RuntimeField'
13-
RuntimeField:
14-
type: object
15-
properties:
16-
fetch_fields:
17-
description: For type `lookup`
18-
type: array
19-
items:
20-
$ref: '#/components/schemas/RuntimeFieldFetchFields'
21-
format:
22-
description: A custom format for `date` type runtime fields.
23-
type: string
24-
input_field:
25-
$ref: '_common.yaml#/components/schemas/Field'
26-
target_field:
27-
$ref: '_common.yaml#/components/schemas/Field'
28-
target_index:
29-
$ref: '_common.yaml#/components/schemas/IndexName'
30-
script:
31-
$ref: '_common.yaml#/components/schemas/Script'
32-
type:
33-
$ref: '#/components/schemas/RuntimeFieldType'
34-
required:
35-
- type
36-
RuntimeFieldFetchFields:
37-
type: object
38-
properties:
39-
field:
40-
$ref: '_common.yaml#/components/schemas/Field'
41-
format:
42-
type: string
43-
required:
44-
- field
45-
RuntimeFieldType:
46-
type: string
47-
enum:
48-
- boolean
49-
- date
50-
- double
51-
- geo_point
52-
- ip
53-
- keyword
54-
- long
55-
- lookup
569
TypeMapping:
5710
type: object
5811
properties:
@@ -90,10 +43,6 @@ components:
9043
$ref: '#/components/schemas/SizeField'
9144
_source:
9245
$ref: '#/components/schemas/SourceField'
93-
runtime:
94-
type: object
95-
additionalProperties:
96-
$ref: '#/components/schemas/RuntimeField'
9746
enabled:
9847
type: boolean
9948
_data_stream_timestamp:

spec/schemas/_core.msearch.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ components:
152152
version:
153153
description: When `true`, returns the document version as part of the hit.
154154
type: boolean
155-
runtime_mappings:
156-
$ref: '_common.mapping.yaml#/components/schemas/RuntimeFields'
157155
seq_no_primary_term:
158156
description: |-
159157
When `true`, returns the sequence number and primary term of the last modification.

spec/schemas/_core.reindex.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ components:
4242
$ref: '_common.yaml#/components/schemas/Sort'
4343
_source:
4444
$ref: '_common.yaml#/components/schemas/Fields'
45-
runtime_mappings:
46-
$ref: '_common.mapping.yaml#/components/schemas/RuntimeFields'
4745
required:
4846
- index
4947
RemoteSource:

spec/schemas/asynchronous_search._common.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ components:
155155
$ref: '_common.yaml#/components/schemas/Fields'
156156
pit:
157157
$ref: '_core.search.yaml#/components/schemas/PointInTimeReference'
158-
runtime_mappings:
159-
$ref: '_common.mapping.yaml#/components/schemas/RuntimeFields'
160158
stats:
161159
description: |-
162160
Stats groups to associate with the search.

spec/schemas/cluster.stats.yaml

-66
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,6 @@ components:
201201
type: array
202202
items:
203203
$ref: '#/components/schemas/FieldTypes'
204-
runtime_field_types:
205-
description: Contains statistics about runtime field data types used in selected nodes.
206-
type: array
207-
items:
208-
$ref: '#/components/schemas/RuntimeFieldTypes'
209204
total_field_count:
210205
description: Total number of fields in all non-system indices.
211206
type: number
@@ -219,67 +214,6 @@ components:
219214
$ref: '_common.yaml#/components/schemas/ByteCount'
220215
required:
221216
- field_types
222-
RuntimeFieldTypes:
223-
type: object
224-
properties:
225-
chars_max:
226-
description: Maximum number of characters for a single runtime field script.
227-
type: number
228-
chars_total:
229-
description: Total number of characters for the scripts that define the current runtime field data type.
230-
type: number
231-
count:
232-
description: Number of runtime fields mapped to the field data type in selected nodes.
233-
type: number
234-
doc_max:
235-
description: Maximum number of accesses to doc_values for a single runtime field script
236-
type: number
237-
doc_total:
238-
description: Total number of accesses to doc_values for the scripts that define the current runtime field data type.
239-
type: number
240-
index_count:
241-
description: Number of indices containing a mapping of the runtime field data type in selected nodes.
242-
type: number
243-
lang:
244-
description: Script languages used for the runtime fields scripts.
245-
type: array
246-
items:
247-
type: string
248-
lines_max:
249-
description: Maximum number of lines for a single runtime field script.
250-
type: number
251-
lines_total:
252-
description: Total number of lines for the scripts that define the current runtime field data type.
253-
type: number
254-
name:
255-
$ref: '_common.yaml#/components/schemas/Name'
256-
scriptless_count:
257-
description: Number of runtime fields that don't declare a script.
258-
type: number
259-
shadowed_count:
260-
description: Number of runtime fields that shadow an indexed field.
261-
type: number
262-
source_max:
263-
description: Maximum number of accesses to _source for a single runtime field script.
264-
type: number
265-
source_total:
266-
description: Total number of accesses to _source for the scripts that define the current runtime field data type.
267-
type: number
268-
required:
269-
- chars_max
270-
- chars_total
271-
- count
272-
- doc_max
273-
- doc_total
274-
- index_count
275-
- lang
276-
- lines_max
277-
- lines_total
278-
- name
279-
- scriptless_count
280-
- shadowed_count
281-
- source_max
282-
- source_total
283217
IndicesVersions:
284218
type: object
285219
properties:

0 commit comments

Comments
 (0)