From 2990f09da1283958979b4549fdf3c5e155fca932 Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Fri, 6 Oct 2023 12:17:14 +0200 Subject: [PATCH] Add sparse_vector support --- output/schema/schema.json | 23 +++++++++++++---------- output/typescript/types.ts | 2 +- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 158379de3a..285f7e96dd 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -67757,7 +67757,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L281-L312" + "specLocation": "_types/mapping/core.ts#L285-L316" }, { "kind": "interface", @@ -68071,6 +68071,9 @@ { "name": "dense_vector" }, + { + "name": "sparse_vector" + }, { "name": "match_only_text" } @@ -68079,7 +68082,7 @@ "name": "FieldType", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/Property.ts#L158-L201" + "specLocation": "_types/mapping/Property.ts#L158-L202" }, { "inherits": { @@ -68555,7 +68558,7 @@ "name": "IndexOptions", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L238-L243" + "specLocation": "_types/mapping/core.ts#L242-L247" }, { "inherits": { @@ -69094,7 +69097,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L211-L236" + "specLocation": "_types/mapping/core.ts#L215-L240" }, { "kind": "enum", @@ -70369,7 +70372,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L193-L203" + "specLocation": "_types/mapping/core.ts#L197-L207" }, { "description": "The `shape` data type facilitates the indexing of and searching with arbitrary `x, y` cartesian shapes such as\nrectangles and polygons.", @@ -70727,7 +70730,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L245-L248" + "specLocation": "_types/mapping/core.ts#L249-L252" }, { "inherits": { @@ -70905,7 +70908,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L250-L266" + "specLocation": "_types/mapping/core.ts#L254-L270" }, { "kind": "enum", @@ -71302,7 +71305,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L268-L270" + "specLocation": "_types/mapping/core.ts#L272-L274" }, { "inherits": { @@ -71344,7 +71347,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L272-L279" + "specLocation": "_types/mapping/core.ts#L276-L283" }, { "inherits": { @@ -77054,7 +77057,7 @@ "since": "8.8.0" } }, - "description": "Uses a natural language processing model to convert the query text into a list of token-weight pairs which are then used in a query against a rank features field.", + "description": "Uses a natural language processing model to convert the query text into a list of token-weight pairs which are then used in a query against a sparse vector or rank features field.", "docId": "query-dsl-text-expansion-query", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/query-dsl-text-expansion-query.html", "name": "text_expansion", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 92f674c936..40a1a0717b 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -5000,7 +5000,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' | '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' | 'match_only_text' +export type MappingFieldType = 'none' | 'geo_point' | 'geo_shape' | 'ip' | 'binary' | 'keyword' | 'text' | 'search_as_you_type' | 'date' | 'date_nanos' | 'boolean' | 'completion' | 'nested' | 'object' | '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' export interface MappingFlattenedProperty extends MappingPropertyBase { boost?: double