diff --git a/output/schema/schema.json b/output/schema/schema.json index 5520cc1d0f..902e08b630 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -68115,7 +68115,7 @@ "name": "FieldType", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/Property.ts#L158-L202" + "specLocation": "_types/mapping/Property.ts#L160-L204" }, { "inherits": { @@ -69492,7 +69492,7 @@ "name": "Property", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/Property.ts#L93-L156", + "specLocation": "_types/mapping/Property.ts#L94-L158", "type": { "items": [ { @@ -69614,6 +69614,13 @@ "namespace": "_types.mapping" } }, + { + "kind": "instance_of", + "type": { + "name": "SparseVectorProperty", + "namespace": "_types.mapping" + } + }, { "kind": "instance_of", "type": { @@ -69926,7 +69933,7 @@ } } ], - "specLocation": "_types/mapping/Property.ts#L81-L91" + "specLocation": "_types/mapping/Property.ts#L82-L92" }, { "inherits": { @@ -70636,6 +70643,30 @@ }, "specLocation": "_types/mapping/meta-fields.ts#L67-L75" }, + { + "inherits": { + "type": { + "name": "PropertyBase", + "namespace": "_types.mapping" + } + }, + "kind": "interface", + "name": { + "name": "SparseVectorProperty", + "namespace": "_types.mapping" + }, + "properties": [ + { + "name": "type", + "required": true, + "type": { + "kind": "literal_value", + "value": "sparse_vector" + } + } + ], + "specLocation": "_types/mapping/core.ts#L193-L195" + }, { "kind": "interface", "name": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index c3541c3766..f90b7abfc9 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -5164,7 +5164,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 | 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 +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 export interface MappingPropertyBase { meta?: Record @@ -5258,6 +5258,10 @@ export interface MappingSourceField { export type MappingSourceFieldMode = 'disabled' | 'stored' | 'synthetic' +export interface MappingSparseVectorProperty extends MappingPropertyBase { + type: 'sparse_vector' +} + export interface MappingSuggestContext { name: Name path?: Field diff --git a/specification/_types/mapping/Property.ts b/specification/_types/mapping/Property.ts index 52e8374372..26f04432f4 100644 --- a/specification/_types/mapping/Property.ts +++ b/specification/_types/mapping/Property.ts @@ -48,6 +48,7 @@ import { ScaledFloatNumberProperty, SearchAsYouTypeProperty, ShortNumberProperty, + SparseVectorProperty, TextProperty, UnsignedLongNumberProperty, VersionProperty, @@ -117,6 +118,7 @@ export type Property = // complex | AggregateMetricDoubleProperty | DenseVectorProperty + | SparseVectorProperty | FlattenedProperty | NestedProperty | ObjectProperty