From c89389493c03b3444e23859aed5a9f920cd53e78 Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Tue, 18 Jun 2024 17:50:30 +0200 Subject: [PATCH 1/2] Add semantic_text and semantic query --- output/schema/schema.json | 223 ++++++++++++++---- output/typescript/types.ts | 17 +- specification/_types/mapping/Property.ts | 5 +- specification/_types/mapping/core.ts | 15 +- .../_types/query_dsl/SemanticQuery.ts | 27 +++ .../_types/query_dsl/abstractions.ts | 7 + 6 files changed, 244 insertions(+), 50 deletions(-) create mode 100644 specification/_types/query_dsl/SemanticQuery.ts diff --git a/output/schema/schema.json b/output/schema/schema.json index 546bcb181b..c713ad637e 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -69049,7 +69049,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L49-L51" + "specLocation": "_types/mapping/core.ts#L55-L57" }, { "inherits": { @@ -69117,7 +69117,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L53-L59" + "specLocation": "_types/mapping/core.ts#L59-L65" }, { "inherits": { @@ -69152,7 +69152,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L166-L169" + "specLocation": "_types/mapping/core.ts#L172-L175" }, { "inherits": { @@ -69325,7 +69325,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L39-L43" + "specLocation": "_types/mapping/core.ts#L45-L49" }, { "kind": "interface", @@ -69436,7 +69436,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L73-L81" + "specLocation": "_types/mapping/core.ts#L79-L87" }, { "inherits": { @@ -69548,7 +69548,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L61-L71" + "specLocation": "_types/mapping/core.ts#L67-L77" }, { "inherits": { @@ -69732,7 +69732,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L45-L47" + "specLocation": "_types/mapping/core.ts#L51-L53" }, { "inherits": { @@ -69767,7 +69767,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L146-L149" + "specLocation": "_types/mapping/core.ts#L152-L155" }, { "inherits": { @@ -70080,7 +70080,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L288-L319" + "specLocation": "_types/mapping/core.ts#L301-L332" }, { "kind": "interface", @@ -70519,6 +70519,9 @@ { "name": "dense_vector" }, + { + "name": "semantic_text" + }, { "name": "sparse_vector" }, @@ -70533,7 +70536,7 @@ "name": "FieldType", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/Property.ts#L164-L210" + "specLocation": "_types/mapping/Property.ts#L166-L213" }, { "inherits": { @@ -70691,7 +70694,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L136-L139" + "specLocation": "_types/mapping/core.ts#L142-L145" }, { "inherits": { @@ -70964,7 +70967,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L141-L144" + "specLocation": "_types/mapping/core.ts#L147-L150" }, { "inherits": { @@ -71244,7 +71247,7 @@ "name": "IndexOptions", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L245-L250" + "specLocation": "_types/mapping/core.ts#L258-L263" }, { "inherits": { @@ -71279,7 +71282,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L151-L154" + "specLocation": "_types/mapping/core.ts#L157-L160" }, { "inherits": { @@ -71510,7 +71513,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L83-L87" + "specLocation": "_types/mapping/core.ts#L89-L93" }, { "inherits": { @@ -71665,7 +71668,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L89-L107" + "specLocation": "_types/mapping/core.ts#L95-L113" }, { "inherits": { @@ -71700,7 +71703,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L156-L159" + "specLocation": "_types/mapping/core.ts#L162-L165" }, { "inherits": { @@ -71805,7 +71808,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L218-L243" + "specLocation": "_types/mapping/core.ts#L231-L256" }, { "kind": "enum", @@ -72027,7 +72030,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L109-L129" + "specLocation": "_types/mapping/core.ts#L115-L135" }, { "inherits": { @@ -72089,7 +72092,7 @@ "name": "OnScriptError", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L131-L134" + "specLocation": "_types/mapping/core.ts#L137-L140" }, { "inherits": { @@ -72113,7 +72116,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L182-L184" + "specLocation": "_types/mapping/core.ts#L188-L190" }, { "inherits": { @@ -72178,7 +72181,7 @@ "name": "Property", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/Property.ts#L95-L162", + "specLocation": "_types/mapping/Property.ts#L96-L164", "type": { "items": [ { @@ -72303,28 +72306,35 @@ { "kind": "instance_of", "type": { - "name": "SparseVectorProperty", + "name": "FlattenedProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { - "name": "FlattenedProperty", + "name": "NestedProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { - "name": "NestedProperty", + "name": "ObjectProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { - "name": "ObjectProperty", + "name": "SemanticTextProperty", + "namespace": "_types.mapping" + } + }, + { + "kind": "instance_of", + "type": { + "name": "SparseVectorProperty", "namespace": "_types.mapping" } }, @@ -72626,7 +72636,7 @@ } } ], - "specLocation": "_types/mapping/Property.ts#L83-L93" + "specLocation": "_types/mapping/Property.ts#L84-L94" }, { "inherits": { @@ -72710,7 +72720,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L186-L189" + "specLocation": "_types/mapping/core.ts#L192-L195" }, { "inherits": { @@ -72745,7 +72755,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L191-L194" + "specLocation": "_types/mapping/core.ts#L197-L200" }, { "kind": "interface", @@ -73007,7 +73017,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L176-L180" + "specLocation": "_types/mapping/core.ts#L182-L186" }, { "inherits": { @@ -73119,7 +73129,69 @@ } } ], - "specLocation": "_types/mapping/core.ts#L200-L210" + "specLocation": "_types/mapping/core.ts#L213-L223" + }, + { + "kind": "interface", + "name": { + "name": "SemanticTextProperty", + "namespace": "_types.mapping" + }, + "properties": [ + { + "name": "type", + "required": true, + "type": { + "kind": "literal_value", + "value": "semantic_text" + } + }, + { + "name": "meta", + "required": false, + "type": { + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "kind": "dictionary_of", + "singleKey": false, + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + }, + { + "name": "inference_id", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Id", + "namespace": "_types" + } + } + }, + { + "name": "copy_to", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Fields", + "namespace": "_types" + } + } + } + ], + "specLocation": "_types/mapping/core.ts#L206-L211" }, { "description": "The `shape` data type facilitates the indexing of and searching with arbitrary `x, y` cartesian shapes such as\nrectangles and polygons.", @@ -73225,7 +73297,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L161-L164" + "specLocation": "_types/mapping/core.ts#L167-L170" }, { "kind": "interface", @@ -73372,7 +73444,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L196-L198" + "specLocation": "_types/mapping/core.ts#L202-L204" }, { "kind": "interface", @@ -73501,7 +73573,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L252-L255" + "specLocation": "_types/mapping/core.ts#L265-L268" }, { "inherits": { @@ -73679,7 +73751,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L257-L273" + "specLocation": "_types/mapping/core.ts#L270-L286" }, { "kind": "enum", @@ -74063,7 +74135,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L171-L174" + "specLocation": "_types/mapping/core.ts#L177-L180" }, { "inherits": { @@ -74087,7 +74159,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L275-L277" + "specLocation": "_types/mapping/core.ts#L288-L290" }, { "inherits": { @@ -74129,7 +74201,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L279-L286" + "specLocation": "_types/mapping/core.ts#L292-L299" }, { "inherits": { @@ -74360,7 +74432,7 @@ "name": "CombinedFieldsOperator", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/abstractions.ts#L489-L492" + "specLocation": "_types/query_dsl/abstractions.ts#L496-L499" }, { "inherits": { @@ -74456,7 +74528,7 @@ } } ], - "specLocation": "_types/query_dsl/abstractions.ts#L445-L479" + "specLocation": "_types/query_dsl/abstractions.ts#L452-L486" }, { "kind": "enum", @@ -74474,7 +74546,7 @@ "name": "CombinedFieldsZeroTerms", "namespace": "_types.query_dsl" }, - "specLocation": "_types/query_dsl/abstractions.ts#L494-L503" + "specLocation": "_types/query_dsl/abstractions.ts#L501-L510" }, { "inherits": { @@ -75152,7 +75224,7 @@ } ], "shortcutProperty": "field", - "specLocation": "_types/query_dsl/abstractions.ts#L505-L519" + "specLocation": "_types/query_dsl/abstractions.ts#L512-L526" }, { "kind": "interface", @@ -75210,7 +75282,7 @@ } } ], - "specLocation": "_types/query_dsl/abstractions.ts#L409-L426" + "specLocation": "_types/query_dsl/abstractions.ts#L416-L433" }, { "kind": "enum", @@ -78939,7 +79011,7 @@ } } ], - "specLocation": "_types/query_dsl/abstractions.ts#L432-L443" + "specLocation": "_types/query_dsl/abstractions.ts#L439-L450" }, { "docId": "query-dsl", @@ -79608,6 +79680,25 @@ } } }, + { + "availability": { + "serverless": {}, + "stack": { + "since": "8.15.0" + } + }, + "description": "A semantic query to semantic_text field types", + "name": "semantic", + "required": false, + "since": "8.15.0", + "type": { + "kind": "instance_of", + "type": { + "name": "SemanticQuery", + "namespace": "_types.query_dsl" + } + } + }, { "description": "Queries documents that contain fields indexed using the `shape` type.", "docId": "query-dsl-shape-query", @@ -79955,7 +80046,7 @@ } } ], - "specLocation": "_types/query_dsl/abstractions.ts#L100-L407", + "specLocation": "_types/query_dsl/abstractions.ts#L101-L414", "variants": { "kind": "container", "nonExhaustive": true @@ -80871,6 +80962,46 @@ ], "specLocation": "_types/query_dsl/specialized.ts#L326-L340" }, + { + "inherits": { + "type": { + "name": "QueryBase", + "namespace": "_types.query_dsl" + } + }, + "kind": "interface", + "name": { + "name": "SemanticQuery", + "namespace": "_types.query_dsl" + }, + "properties": [ + { + "description": "The field to query, which must be a semantic_text field type", + "name": "field", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "The query text", + "name": "query", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "_types/query_dsl/SemanticQuery.ts#L22-L27" + }, { "kind": "interface", "name": { @@ -82464,7 +82595,7 @@ } } ], - "specLocation": "_types/query_dsl/abstractions.ts#L481-L487" + "specLocation": "_types/query_dsl/abstractions.ts#L488-L494" }, { "kind": "enum", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 6f8ab6dd05..e94b550622 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -5080,7 +5080,7 @@ export interface MappingFieldNamesField { enabled: boolean } -export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'version' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector' | 'sparse_vector' | 'match_only_text' | 'icu_collation_keyword' +export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | 'version' | 'murmur3' | 'token_count' | 'percolator' | 'integer' | 'long' | 'short' | 'byte' | 'float' | 'half_float' | 'scaled_float' | 'double' | 'integer_range' | 'float_range' | 'long_range' | 'double_range' | 'date_range' | 'ip_range' | 'alias' | 'join' | 'rank_feature' | 'rank_features' | 'flattened' | 'shape' | 'histogram' | 'constant_keyword' | 'aggregate_metric_double' | 'dense_vector' | 'semantic_text' | 'sparse_vector' | 'match_only_text' | 'icu_collation_keyword' export interface MappingFlattenedProperty extends MappingPropertyBase { boost?: double @@ -5267,7 +5267,7 @@ export interface MappingPointProperty extends MappingDocValuesPropertyBase { type: 'point' } -export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingSparseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingCompletionProperty | MappingConstantKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingTokenCountProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingPointProperty | MappingShapeProperty | MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingScaledFloatNumberProperty | MappingShortNumberProperty | MappingUnsignedLongNumberProperty | MappingDateRangeProperty | MappingDoubleRangeProperty | MappingFloatRangeProperty | MappingIntegerRangeProperty | MappingIpRangeProperty | MappingLongRangeProperty | MappingIcuCollationProperty +export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingSemanticTextProperty | MappingSparseVectorProperty | MappingCompletionProperty | MappingConstantKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingTokenCountProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingPointProperty | MappingShapeProperty | MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingScaledFloatNumberProperty | MappingShortNumberProperty | MappingUnsignedLongNumberProperty | MappingDateRangeProperty | MappingDoubleRangeProperty | MappingFloatRangeProperty | MappingIntegerRangeProperty | MappingIpRangeProperty | MappingLongRangeProperty | MappingIcuCollationProperty export interface MappingPropertyBase { meta?: Record @@ -5334,6 +5334,13 @@ export interface MappingSearchAsYouTypeProperty extends MappingCorePropertyBase type: 'search_as_you_type' } +export interface MappingSemanticTextProperty { + type: 'semantic_text' + meta?: Record + inference_id: Id + copy_to?: Fields +} + export interface MappingShapeProperty extends MappingDocValuesPropertyBase { coerce?: boolean ignore_malformed?: boolean @@ -5944,6 +5951,7 @@ export interface QueryDslQueryContainer { rule_query?: QueryDslRuleQuery script?: QueryDslScriptQuery script_score?: QueryDslScriptScoreQuery + semantic?: QueryDslSemanticQuery shape?: QueryDslShapeQuery simple_query_string?: QueryDslSimpleQueryStringQuery span_containing?: QueryDslSpanContainingQuery @@ -6063,6 +6071,11 @@ export interface QueryDslScriptScoreQuery extends QueryDslQueryBase { script: Script } +export interface QueryDslSemanticQuery extends QueryDslQueryBase { + field: string + query: string +} + export interface QueryDslShapeFieldQuery { indexed_shape?: QueryDslFieldLookup relation?: GeoShapeRelation diff --git a/specification/_types/mapping/Property.ts b/specification/_types/mapping/Property.ts index 53c2787cdd..88fca89607 100644 --- a/specification/_types/mapping/Property.ts +++ b/specification/_types/mapping/Property.ts @@ -48,6 +48,7 @@ import { ScaledFloatNumberProperty, SearchAsYouTypeProperty, ShortNumberProperty, + SemanticTextProperty, SparseVectorProperty, TextProperty, UnsignedLongNumberProperty, @@ -119,10 +120,11 @@ export type Property = // complex | AggregateMetricDoubleProperty | DenseVectorProperty - | SparseVectorProperty | FlattenedProperty | NestedProperty | ObjectProperty + | SemanticTextProperty + | SparseVectorProperty // structured | CompletionProperty @@ -204,6 +206,7 @@ export enum FieldType { constant_keyword, aggregate_metric_double, dense_vector, + semantic_text, sparse_vector, match_only_text, icu_collation_keyword diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index 5eaae7cec3..31ec6a7987 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -20,7 +20,13 @@ import { FielddataFrequencyFilter } from '@indices/_types/FielddataFrequencyFilter' import { NumericFielddata } from '@indices/_types/NumericFielddata' import { Dictionary } from '@spec_utils/Dictionary' -import { Fields, FieldValue, PropertyName, RelationName } from '@_types/common' +import { + Fields, + FieldValue, + Id, + PropertyName, + RelationName +} from '@_types/common' import { byte, double, @@ -197,6 +203,13 @@ export class SparseVectorProperty extends PropertyBase { type: 'sparse_vector' } +export class SemanticTextProperty { + type: 'semantic_text' + meta?: Dictionary + inference_id: Id + copy_to?: Fields +} + export class SearchAsYouTypeProperty extends CorePropertyBase { analyzer?: string index?: boolean diff --git a/specification/_types/query_dsl/SemanticQuery.ts b/specification/_types/query_dsl/SemanticQuery.ts new file mode 100644 index 0000000000..0ae32c644b --- /dev/null +++ b/specification/_types/query_dsl/SemanticQuery.ts @@ -0,0 +1,27 @@ +/* + * 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 { QueryBase } from './abstractions' + +export class SemanticQuery extends QueryBase { + /** The field to query, which must be a semantic_text field type */ + field: string + /** The query text */ + query: string +} diff --git a/specification/_types/query_dsl/abstractions.ts b/specification/_types/query_dsl/abstractions.ts index 7e73d158ba..5396b18623 100644 --- a/specification/_types/query_dsl/abstractions.ts +++ b/specification/_types/query_dsl/abstractions.ts @@ -96,6 +96,7 @@ import { import { TextExpansionQuery } from './TextExpansionQuery' import { WeightedTokensQuery } from './WeightedTokensQuery' import { KnnQuery } from '@_types/Knn' +import { SemanticQuery } from './SemanticQuery' /** * @variants container @@ -301,6 +302,12 @@ export class QueryContainer { * @doc_id query-dsl-script-score-query */ script_score?: ScriptScoreQuery + /** + * A semantic query to semantic_text field types + * @availability stack since=8.15.0 + * @availability serverless + */ + semantic?: SemanticQuery /** * Queries documents that contain fields indexed using the `shape` type. * @doc_id query-dsl-shape-query From 0f47fe28b8e64f02b074e515aea66c1ada5dede6 Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Wed, 19 Jun 2024 17:16:00 +0200 Subject: [PATCH 2/2] Remove copy_to as it's unsupported by semantic_text field mapping --- output/schema/schema.json | 29 +++++++++------------------- output/typescript/types.ts | 1 - specification/_types/mapping/core.ts | 1 - 3 files changed, 9 insertions(+), 22 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index c713ad637e..bf5ed6cad3 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -70080,7 +70080,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L301-L332" + "specLocation": "_types/mapping/core.ts#L300-L331" }, { "kind": "interface", @@ -71247,7 +71247,7 @@ "name": "IndexOptions", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L258-L263" + "specLocation": "_types/mapping/core.ts#L257-L262" }, { "inherits": { @@ -71808,7 +71808,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L231-L256" + "specLocation": "_types/mapping/core.ts#L230-L255" }, { "kind": "enum", @@ -73129,7 +73129,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L213-L223" + "specLocation": "_types/mapping/core.ts#L212-L222" }, { "kind": "interface", @@ -73178,20 +73178,9 @@ "namespace": "_types" } } - }, - { - "name": "copy_to", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Fields", - "namespace": "_types" - } - } } ], - "specLocation": "_types/mapping/core.ts#L206-L211" + "specLocation": "_types/mapping/core.ts#L206-L210" }, { "description": "The `shape` data type facilitates the indexing of and searching with arbitrary `x, y` cartesian shapes such as\nrectangles and polygons.", @@ -73573,7 +73562,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L265-L268" + "specLocation": "_types/mapping/core.ts#L264-L267" }, { "inherits": { @@ -73751,7 +73740,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L270-L286" + "specLocation": "_types/mapping/core.ts#L269-L285" }, { "kind": "enum", @@ -74159,7 +74148,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L288-L290" + "specLocation": "_types/mapping/core.ts#L287-L289" }, { "inherits": { @@ -74201,7 +74190,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L292-L299" + "specLocation": "_types/mapping/core.ts#L291-L298" }, { "inherits": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index e94b550622..04041781f1 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -5338,7 +5338,6 @@ export interface MappingSemanticTextProperty { type: 'semantic_text' meta?: Record inference_id: Id - copy_to?: Fields } export interface MappingShapeProperty extends MappingDocValuesPropertyBase { diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index 31ec6a7987..6255b5fb6c 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -207,7 +207,6 @@ export class SemanticTextProperty { type: 'semantic_text' meta?: Dictionary inference_id: Id - copy_to?: Fields } export class SearchAsYouTypeProperty extends CorePropertyBase {