Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unsupported runtime fields types #634

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Removed the ability to skip an individual spec test ([#358](https://github.com/opensearch-project/opensearch-api-specification/pull/358))
- Removed `shape` query ([#531](https://github.com/opensearch-project/opensearch-api-specification/pull/531))
- Removed unsupported DataStream Lifecycle types ([#600](https://github.com/opensearch-project/opensearch-api-specification/pull/600))
- Removed unsupported runtime field types ([#634](https://github.com/opensearch-project/opensearch-api-specification/pull/634))

### Fixed

Expand Down
4 changes: 0 additions & 4 deletions spec/namespaces/_core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2349,8 +2349,6 @@ components:
$ref: '../schemas/_common.yaml#/components/schemas/Fields'
index_filter:
$ref: '../schemas/_common.query_dsl.yaml#/components/schemas/QueryContainer'
runtime_mappings:
$ref: '../schemas/_common.mapping.yaml#/components/schemas/RuntimeFields'
description: An index filter specified with the Query DSL
index:
content:
Expand Down Expand Up @@ -2647,8 +2645,6 @@ components:
$ref: '../schemas/_common.yaml#/components/schemas/Fields'
pit:
$ref: '../schemas/_core.search.yaml#/components/schemas/PointInTimeReference'
runtime_mappings:
$ref: '../schemas/_common.mapping.yaml#/components/schemas/RuntimeFields'
stats:
description: |-
Stats groups to associate with the search.
Expand Down
2 changes: 0 additions & 2 deletions spec/namespaces/indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2103,8 +2103,6 @@ components:
$ref: '../schemas/_common.mapping.yaml#/components/schemas/RoutingField'
_source:
$ref: '../schemas/_common.mapping.yaml#/components/schemas/SourceField'
runtime:
$ref: '../schemas/_common.mapping.yaml#/components/schemas/RuntimeFields'
description: The mapping definition
required: true
indices.put_settings:
Expand Down
51 changes: 0 additions & 51 deletions spec/schemas/_common.mapping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,53 +6,6 @@ info:
paths: {}
components:
schemas:
RuntimeFields:
type: object
additionalProperties:
$ref: '#/components/schemas/RuntimeField'
RuntimeField:
type: object
properties:
fetch_fields:
description: For type `lookup`
type: array
items:
$ref: '#/components/schemas/RuntimeFieldFetchFields'
format:
description: A custom format for `date` type runtime fields.
type: string
input_field:
$ref: '_common.yaml#/components/schemas/Field'
target_field:
$ref: '_common.yaml#/components/schemas/Field'
target_index:
$ref: '_common.yaml#/components/schemas/IndexName'
script:
$ref: '_common.yaml#/components/schemas/Script'
type:
$ref: '#/components/schemas/RuntimeFieldType'
required:
- type
RuntimeFieldFetchFields:
type: object
properties:
field:
$ref: '_common.yaml#/components/schemas/Field'
format:
type: string
required:
- field
RuntimeFieldType:
type: string
enum:
- boolean
- date
- double
- geo_point
- ip
- keyword
- long
- lookup
TypeMapping:
type: object
properties:
Expand Down Expand Up @@ -90,10 +43,6 @@ components:
$ref: '#/components/schemas/SizeField'
_source:
$ref: '#/components/schemas/SourceField'
runtime:
type: object
additionalProperties:
$ref: '#/components/schemas/RuntimeField'
enabled:
type: boolean
_data_stream_timestamp:
Expand Down
2 changes: 0 additions & 2 deletions spec/schemas/_core.msearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ components:
version:
description: When `true`, returns the document version as part of the hit.
type: boolean
runtime_mappings:
$ref: '_common.mapping.yaml#/components/schemas/RuntimeFields'
seq_no_primary_term:
description: |-
When `true`, returns the sequence number and primary term of the last modification.
Expand Down
2 changes: 0 additions & 2 deletions spec/schemas/_core.reindex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ components:
$ref: '_common.yaml#/components/schemas/Sort'
_source:
$ref: '_common.yaml#/components/schemas/Fields'
runtime_mappings:
$ref: '_common.mapping.yaml#/components/schemas/RuntimeFields'
required:
- index
RemoteSource:
Expand Down
2 changes: 0 additions & 2 deletions spec/schemas/asynchronous_search._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ components:
$ref: '_common.yaml#/components/schemas/Fields'
pit:
$ref: '_core.search.yaml#/components/schemas/PointInTimeReference'
runtime_mappings:
$ref: '_common.mapping.yaml#/components/schemas/RuntimeFields'
stats:
description: |-
Stats groups to associate with the search.
Expand Down
66 changes: 0 additions & 66 deletions spec/schemas/cluster.stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,6 @@ components:
type: array
items:
$ref: '#/components/schemas/FieldTypes'
runtime_field_types:
description: Contains statistics about runtime field data types used in selected nodes.
type: array
items:
$ref: '#/components/schemas/RuntimeFieldTypes'
total_field_count:
description: Total number of fields in all non-system indices.
type: number
Expand All @@ -219,67 +214,6 @@ components:
$ref: '_common.yaml#/components/schemas/ByteCount'
required:
- field_types
RuntimeFieldTypes:
type: object
properties:
chars_max:
description: Maximum number of characters for a single runtime field script.
type: number
chars_total:
description: Total number of characters for the scripts that define the current runtime field data type.
type: number
count:
description: Number of runtime fields mapped to the field data type in selected nodes.
type: number
doc_max:
description: Maximum number of accesses to doc_values for a single runtime field script
type: number
doc_total:
description: Total number of accesses to doc_values for the scripts that define the current runtime field data type.
type: number
index_count:
description: Number of indices containing a mapping of the runtime field data type in selected nodes.
type: number
lang:
description: Script languages used for the runtime fields scripts.
type: array
items:
type: string
lines_max:
description: Maximum number of lines for a single runtime field script.
type: number
lines_total:
description: Total number of lines for the scripts that define the current runtime field data type.
type: number
name:
$ref: '_common.yaml#/components/schemas/Name'
scriptless_count:
description: Number of runtime fields that don't declare a script.
type: number
shadowed_count:
description: Number of runtime fields that shadow an indexed field.
type: number
source_max:
description: Maximum number of accesses to _source for a single runtime field script.
type: number
source_total:
description: Total number of accesses to _source for the scripts that define the current runtime field data type.
type: number
required:
- chars_max
- chars_total
- count
- doc_max
- doc_total
- index_count
- lang
- lines_max
- lines_total
- name
- scriptless_count
- shadowed_count
- source_max
- source_total
IndicesVersions:
type: object
properties:
Expand Down
Loading