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