From ca1fa97831f5351f003c69ef65ea7825994506a0 Mon Sep 17 00:00:00 2001 From: "Mark J. Hoy" Date: Tue, 24 Jun 2025 11:36:10 -0400 Subject: [PATCH] update SparseVectorQuery pruning for GA (#4454) Co-authored-by: Quentin Pradet (cherry picked from commit a07023bc4ecb3917aa4c44c72c282251a2e6ac7b) --- output/openapi/elasticsearch-openapi.json | 2 +- .../openapi/elasticsearch-serverless-openapi.json | 2 +- output/schema/schema.json | 14 ++++---------- .../_types/query_dsl/SparseVectorQuery.ts | 8 ++++---- 4 files changed, 10 insertions(+), 16 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 2b611b2b70..31a56a9a8c 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -53833,7 +53833,7 @@ }, "prune": { "description": "Whether to perform pruning, omitting the non-significant tokens from the query to improve query performance.\nIf prune is true but the pruning_config is not specified, pruning will occur but default values will be used.\nDefault: false", - "x-state": "Technical preview; Added in 8.15.0", + "x-state": "Generally available; Added in 8.15.0", "type": "boolean" }, "pruning_config": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index a0452e541b..a3f0977d45 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -33164,7 +33164,7 @@ }, "prune": { "description": "Whether to perform pruning, omitting the non-significant tokens from the query to improve query performance.\nIf prune is true but the pruning_config is not specified, pruning will occur but default values will be used.\nDefault: false", - "x-state": "Technical preview", + "x-state": "Generally available", "type": "boolean" }, "pruning_config": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 21a8542528..4a6935bc33 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -94519,12 +94519,9 @@ }, { "availability": { - "serverless": { - "stability": "experimental" - }, + "serverless": {}, "stack": { - "since": "8.15.0", - "stability": "experimental" + "since": "8.15.0" } }, "containerProperty": true, @@ -94541,12 +94538,9 @@ }, { "availability": { - "serverless": { - "stability": "experimental" - }, + "serverless": {}, "stack": { - "since": "8.15.0", - "stability": "experimental" + "since": "8.15.0" } }, "containerProperty": true, diff --git a/specification/_types/query_dsl/SparseVectorQuery.ts b/specification/_types/query_dsl/SparseVectorQuery.ts index 2b3dafedfe..c2164bb3db 100644 --- a/specification/_types/query_dsl/SparseVectorQuery.ts +++ b/specification/_types/query_dsl/SparseVectorQuery.ts @@ -61,8 +61,8 @@ export class SparseVectorQuery extends QueryBase { * Whether to perform pruning, omitting the non-significant tokens from the query to improve query performance. * If prune is true but the pruning_config is not specified, pruning will occur but default values will be used. * Default: false - * @availability stack since=8.15.0 stability=experimental - * @availability serverless stability=experimental + * @availability stack since=8.15.0 + * @availability serverless * @variant container_property */ prune?: boolean @@ -72,8 +72,8 @@ export class SparseVectorQuery extends QueryBase { * If enabled, this will omit non-significant tokens from the query in order to improve query performance. * This is only used if prune is set to true. * If prune is set to true but pruning_config is not specified, default values will be used. - * @availability stack since=8.15.0 stability=experimental - * @availability serverless stability=experimental + * @availability stack since=8.15.0 + * @availability serverless * @variant container_property */ pruning_config?: TokenPruningConfig