diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 7df370f195..bb5ca73e07 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -32226,6 +32226,15 @@ "minProperties": 1, "maxProperties": 1 }, + "weighted_tokens": { + "description": "Supports returning text_expansion query results by sending in precomputed tokens with the query.", + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/_types.query_dsl:WeightedTokensQuery" + }, + "minProperties": 1, + "maxProperties": 1 + }, "wildcard": { "externalDocs": { "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html" @@ -36022,6 +36031,9 @@ "model_text": { "description": "The query text", "type": "string" + }, + "pruning_config": { + "$ref": "#/components/schemas/_types.query_dsl:TokenPruningConfig" } }, "required": [ @@ -36031,6 +36043,48 @@ } ] }, + "_types.query_dsl:TokenPruningConfig": { + "type": "object", + "properties": { + "tokens_freq_ratio_threshold": { + "description": "Tokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned.", + "type": "number" + }, + "tokens_weight_threshold": { + "description": "Tokens whose weight is less than this threshold are considered nonsignificant and pruned.", + "type": "number" + }, + "only_score_pruned_tokens": { + "description": "Whether to only score pruned tokens, vs only scoring kept tokens.", + "type": "boolean" + } + } + }, + "_types.query_dsl:WeightedTokensQuery": { + "allOf": [ + { + "$ref": "#/components/schemas/_types.query_dsl:QueryBase" + }, + { + "type": "object", + "properties": { + "tokens": { + "description": "The tokens representing this query", + "type": "object", + "additionalProperties": { + "type": "number" + } + }, + "pruning_config": { + "$ref": "#/components/schemas/_types.query_dsl:TokenPruningConfig" + } + }, + "required": [ + "tokens" + ] + } + ] + }, "_types.query_dsl:WildcardQuery": { "allOf": [ { diff --git a/output/schema/schema.json b/output/schema/schema.json index 598fa8e769..c0cbfc318f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -79924,7 +79924,7 @@ } } ], - "specLocation": "_types/query_dsl/WeightedTokensQuery.ts#L27-L34" + "specLocation": "_types/query_dsl/WeightedTokensQuery.ts#L27-L32" }, { "inherits": {