diff --git a/.gitattributes b/.gitattributes index c1603df728..10b2ef08b5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,6 @@ output/dangling-types/dangling.csv linguist-generated=true output/schema/schema.json linguist-generated=true +output/openapi/elasticsearch-serverless-openapi.json linguist-generated=true output/schema/import-type-graph.json linguist-generated=true output/schema/import-namespace-graph-compact.json linguist-generated=true output/schema/import-namespace-graph-expanded.json linguist-generated=true diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index de48bf624a..730da90382 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -45049,6 +45049,9 @@ { "$ref": "#/components/schemas/_types.mapping:DenseVectorProperty" }, + { + "$ref": "#/components/schemas/_types.mapping:SparseVectorProperty" + }, { "$ref": "#/components/schemas/_types.mapping:FlattenedProperty" }, @@ -45955,6 +45958,27 @@ "ef_construction" ] }, + "_types.mapping:SparseVectorProperty": { + "allOf": [ + { + "$ref": "#/components/schemas/_types.mapping:PropertyBase" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "sparse_vector" + ] + } + }, + "required": [ + "type" + ] + } + ] + }, "_types.mapping:FlattenedProperty": { "allOf": [ { diff --git a/output/schema/schema.json b/output/schema/schema.json index 1c6bf48dd1..fda5ce0ac4 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -68417,7 +68417,7 @@ "name": "FieldType", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/Property.ts#L158-L202" + "specLocation": "_types/mapping/Property.ts#L159-L203" }, { "inherits": { @@ -69794,7 +69794,7 @@ "name": "Property", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/Property.ts#L93-L156", + "specLocation": "_types/mapping/Property.ts#L93-L157", "type": { "items": [ { @@ -69916,6 +69916,13 @@ "namespace": "_types.mapping" } }, + { + "kind": "instance_of", + "type": { + "name": "SparseVectorProperty", + "namespace": "_types.mapping" + } + }, { "kind": "instance_of", "type": { @@ -70938,6 +70945,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 2efbfbc87b..eb7ea303ff 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -5166,7 +5166,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 @@ -5260,6 +5260,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