diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index edb393bddc..3984e8348e 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -86329,6 +86329,13 @@ "$ref": "#/components/schemas/_types.mapping.ChunkingSettings" } ] + }, + "fields": { + "description": "Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one\nfield for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.", + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/_types.mapping.Property" + } } }, "required": [ diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 286c5c17d8..4f03b57ab3 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -57999,6 +57999,13 @@ "$ref": "#/components/schemas/_types.mapping.ChunkingSettings" } ] + }, + "fields": { + "description": "Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one\nfield for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.", + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/_types.mapping.Property" + } } }, "required": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index dc4ce6863a..54a4ba7e49 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -83555,7 +83555,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L353-L384" + "specLocation": "_types/mapping/core.ts#L359-L390" }, { "kind": "interface", @@ -84783,7 +84783,7 @@ "name": "IndexOptions", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L309-L314" + "specLocation": "_types/mapping/core.ts#L315-L320" }, { "kind": "interface", @@ -85365,7 +85365,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L282-L307" + "specLocation": "_types/mapping/core.ts#L288-L313" }, { "kind": "enum", @@ -86418,7 +86418,7 @@ "name": "RankVectorElementType", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L386-L390" + "specLocation": "_types/mapping/core.ts#L392-L396" }, { "kind": "interface", @@ -86888,7 +86888,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L263-L274" + "specLocation": "_types/mapping/core.ts#L269-L280" }, { "kind": "interface", @@ -86963,9 +86963,34 @@ "namespace": "_types.mapping" } } + }, + { + "description": "Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one\nfield for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.", + "docId": "multi-fields", + "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/multi-fields", + "name": "fields", + "required": false, + "type": { + "kind": "dictionary_of", + "key": { + "kind": "instance_of", + "type": { + "name": "PropertyName", + "namespace": "_types" + } + }, + "singleKey": false, + "value": { + "kind": "instance_of", + "type": { + "name": "Property", + "namespace": "_types.mapping" + } + } + } } ], - "specLocation": "_types/mapping/core.ts#L238-L261" + "specLocation": "_types/mapping/core.ts#L238-L267" }, { "kind": "interface", @@ -87473,7 +87498,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L316-L319" + "specLocation": "_types/mapping/core.ts#L322-L325" }, { "kind": "interface", @@ -87686,7 +87711,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L321-L338" + "specLocation": "_types/mapping/core.ts#L327-L344" }, { "kind": "enum", @@ -88093,7 +88118,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L340-L342" + "specLocation": "_types/mapping/core.ts#L346-L348" }, { "kind": "interface", @@ -88134,7 +88159,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L344-L351" + "specLocation": "_types/mapping/core.ts#L350-L357" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index c4171edd29..ee15776942 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -6026,6 +6026,7 @@ export interface MappingSemanticTextProperty { inference_id?: Id search_inference_id?: Id chunking_settings?: MappingChunkingSettings + fields?: Record } export interface MappingShapeProperty extends MappingDocValuesPropertyBase { diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index 33377fce93..6ec2e97510 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -258,6 +258,12 @@ export class SemanticTextProperty { * they will not be applied to existing documents until they are reindexed. */ chunking_settings?: ChunkingSettings + /** + * Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one + * field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers. + * @doc_id multi-fields + */ + fields?: Dictionary } export class SearchAsYouTypeProperty extends CorePropertyBase {