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 diff --git a/specification/_types/mapping/Property.ts b/specification/_types/mapping/Property.ts index 82fe6fbcc9..52e8374372 100644 --- a/specification/_types/mapping/Property.ts +++ b/specification/_types/mapping/Property.ts @@ -197,6 +197,7 @@ export enum FieldType { constant_keyword, aggregate_metric_double, dense_vector, + sparse_vector, match_only_text } diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index 092a6a9f4c..11635a44f7 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -190,6 +190,10 @@ export class RankFeaturesProperty extends PropertyBase { type: 'rank_features' } +export class SparseVectorProperty extends PropertyBase { + type: 'sparse_vector' +} + export class SearchAsYouTypeProperty extends CorePropertyBase { analyzer?: string index?: boolean diff --git a/specification/_types/query_dsl/abstractions.ts b/specification/_types/query_dsl/abstractions.ts index b658572063..f89828fc0a 100644 --- a/specification/_types/query_dsl/abstractions.ts +++ b/specification/_types/query_dsl/abstractions.ts @@ -367,7 +367,7 @@ export class QueryContainer { */ terms_set?: SingleKeyDictionary /** - * 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. + * 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. * @availability stack since=8.8.0 * @availability serverless * @doc_id query-dsl-text-expansion-query