Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
443 changes: 443 additions & 0 deletions output/schema/schema.json

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions specification/_doc_ids/table.csv
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ mapping-source-field,https://www.elastic.co/guide/en/elasticsearch/reference/{br
mapping,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping.html
mapping,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping.html
mean-reciprocal,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/search-rank-eval.html#_mean_reciprocal_rank
migrate,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migrate-data-stream.html
migrate-index-allocation-filters,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migrate-index-allocation-filters.html
migration-api-deprecation,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/migration-api-deprecation.html
migration-api-feature-upgrade,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/feature-migration-api.html
Expand Down
28 changes: 28 additions & 0 deletions specification/_json_spec/migrate.cancel_reindex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"migrate.cancel_reindex": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
"description": "This API cancels migration reindex attempt for a data stream or index"
},
"stability": "experimental",
"visibility": "private",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_migration/reindex/{index}/_cancel",
"methods": ["POST"],
"parts": {
"index": {
"type": "string",
"description": "The index or data stream name"
}
}
}
]
}
}
}
36 changes: 36 additions & 0 deletions specification/_json_spec/migrate.create_from.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"migrate.create_from": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
"description": "This API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values."
},
"stability": "experimental",
"visibility": "private",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_create_from/{source}/{dest}",
"methods": ["PUT", "POST"],
"parts": {
"source": {
"type": "string",
"description": "The source index name"
},
"dest": {
"type": "string",
"description": "The destination index name"
}
}
}
]
},
"body": {
"description": "The body contains the fields `mappings_override` and `settings_override`.",
"required": false
}
}
}
28 changes: 28 additions & 0 deletions specification/_json_spec/migrate.get_reindex_status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"migrate.get_reindex_status": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
"description": "This API returns the status of a migration reindex attempt for a data stream or index"
},
"stability": "experimental",
"visibility": "private",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_migration/reindex/{index}/_status",
"methods": ["GET"],
"parts": {
"index": {
"type": "string",
"description": "The index or data stream name"
}
}
}
]
}
}
}
26 changes: 26 additions & 0 deletions specification/_json_spec/migrate.reindex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"migrate.reindex": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
"description": "This API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task"
},
"stability": "experimental",
"visibility": "private",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_migration/reindex",
"methods": ["POST"]
}
]
},
"body": {
"description": "The body contains the fields `mode` and `source.index`, where the only mode currently supported is `upgrade`, and the `source.index` must be a data stream name",
"required": true
}
}
}
32 changes: 32 additions & 0 deletions specification/migrate/_types/CreateFrom.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { Indices } from '@_types/common'

export class CreateFrom {
/**
* Reindex mode. Currently only 'upgrade' is supported.
*/
mappings_override: string
/**
* The source index or data stream (only data streams are currently supported).
*/
settings_ovveride: string
}

35 changes: 35 additions & 0 deletions specification/migrate/_types/MigrateReindex.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { Indices } from '@_types/common'

export class MigrateReindex {
/**
* Reindex mode. Currently only 'upgrade' is supported.
*/
mode: string
/**
* The source index or data stream (only data streams are currently supported).
*/
source: Index
}

export class Index {
index: Indices
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { RequestBase } from '@_types/Base'
import { Indices } from '@_types/common'

/**
* This API cancels a migration reindex attempt for a data stream or index
*
* @rest_spec_name migrate.cancel_reindex
* @availability stack since=8.18.0 stability=experimental
* @availability serverless stability=experimental visibility=private
* @doc_id migrate
* @doc_tag cancel_reindex
*/
export interface Request extends RequestBase {
path_parts: {
/** The index or data stream name */
index: Indices
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { AcknowledgedResponseBase } from '@_types/Base'

export class Response {
body: AcknowledgedResponseBase
}
42 changes: 42 additions & 0 deletions specification/migrate/create_from/MigrateCreateFromRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { MigrateReindex } from '../_types/MigrateReindex'
import { RequestBase } from '@_types/Base'
import { Indices } from '@_types/common'

/**
* This API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values.
*
* @rest_spec_name migrate.create_from
* @availability stack since=8.18.0 stability=experimental
* @availability serverless stability=experimental visibility=private
* @doc_id migrate
* @doc_tag create_from
*/
export interface Request extends RequestBase {
path_parts: {
/** The source index or data stream name */
source: string,
/** The destination index or data stream name */
dest: string
},
/** @codegen_name create_from */
body: MigrateReindex
}
24 changes: 24 additions & 0 deletions specification/migrate/create_from/MigrateCreateFromResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { AcknowledgedResponseBase } from '@_types/Base'

export class Response {
body: AcknowledgedResponseBase
}
Loading
Loading