|
57225 | 57225 | "span_within": {
|
57226 | 57226 | "$ref": "#/components/schemas/_types.query_dsl:SpanWithinQuery"
|
57227 | 57227 | },
|
| 57228 | + "sparse_vector": { |
| 57229 | + "$ref": "#/components/schemas/_types.query_dsl:SparseVectorQuery" |
| 57230 | + }, |
57228 | 57231 | "term": {
|
57229 | 57232 | "externalDocs": {
|
57230 | 57233 | "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-term-query.html"
|
|
57253 | 57256 | "maxProperties": 1
|
57254 | 57257 | },
|
57255 | 57258 | "text_expansion": {
|
| 57259 | + "deprecated": true, |
57256 | 57260 | "externalDocs": {
|
57257 | 57261 | "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-text-expansion-query.html"
|
57258 | 57262 | },
|
|
57265 | 57269 | "maxProperties": 1
|
57266 | 57270 | },
|
57267 | 57271 | "weighted_tokens": {
|
| 57272 | + "deprecated": true, |
57268 | 57273 | "description": "Supports returning text_expansion query results by sending in precomputed tokens with the query.",
|
57269 | 57274 | "type": "object",
|
57270 | 57275 | "additionalProperties": {
|
|
61163 | 61168 | }
|
61164 | 61169 | ]
|
61165 | 61170 | },
|
| 61171 | + "_types.query_dsl:SparseVectorQuery": { |
| 61172 | + "allOf": [ |
| 61173 | + { |
| 61174 | + "$ref": "#/components/schemas/_types.query_dsl:QueryBase" |
| 61175 | + }, |
| 61176 | + { |
| 61177 | + "allOf": [ |
| 61178 | + { |
| 61179 | + "type": "object", |
| 61180 | + "properties": { |
| 61181 | + "field": { |
| 61182 | + "$ref": "#/components/schemas/_types:Field" |
| 61183 | + } |
| 61184 | + }, |
| 61185 | + "required": [ |
| 61186 | + "field" |
| 61187 | + ] |
| 61188 | + }, |
| 61189 | + { |
| 61190 | + "type": "object", |
| 61191 | + "properties": { |
| 61192 | + "query_vector": { |
| 61193 | + "description": "Dictionary of precomputed sparse vectors and their associated weights.\nOnly one of inference_id or query_vector may be supplied in a request.", |
| 61194 | + "type": "object", |
| 61195 | + "additionalProperties": { |
| 61196 | + "type": "number" |
| 61197 | + } |
| 61198 | + }, |
| 61199 | + "inference_id": { |
| 61200 | + "$ref": "#/components/schemas/_types:Id" |
| 61201 | + }, |
| 61202 | + "query": { |
| 61203 | + "description": "The query text you want to use for search.\nIf inference_id is specified, query must also be specified.", |
| 61204 | + "type": "string" |
| 61205 | + }, |
| 61206 | + "prune": { |
| 61207 | + "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", |
| 61208 | + "type": "boolean" |
| 61209 | + }, |
| 61210 | + "pruning_config": { |
| 61211 | + "$ref": "#/components/schemas/_types.query_dsl:TokenPruningConfig" |
| 61212 | + } |
| 61213 | + }, |
| 61214 | + "minProperties": 1, |
| 61215 | + "maxProperties": 1 |
| 61216 | + } |
| 61217 | + ] |
| 61218 | + } |
| 61219 | + ] |
| 61220 | + }, |
| 61221 | + "_types.query_dsl:TokenPruningConfig": { |
| 61222 | + "type": "object", |
| 61223 | + "properties": { |
| 61224 | + "tokens_freq_ratio_threshold": { |
| 61225 | + "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.", |
| 61226 | + "type": "number" |
| 61227 | + }, |
| 61228 | + "tokens_weight_threshold": { |
| 61229 | + "description": "Tokens whose weight is less than this threshold are considered nonsignificant and pruned.", |
| 61230 | + "type": "number" |
| 61231 | + }, |
| 61232 | + "only_score_pruned_tokens": { |
| 61233 | + "description": "Whether to only score pruned tokens, vs only scoring kept tokens.", |
| 61234 | + "type": "boolean" |
| 61235 | + } |
| 61236 | + } |
| 61237 | + }, |
61166 | 61238 | "_types.query_dsl:TermQuery": {
|
61167 | 61239 | "allOf": [
|
61168 | 61240 | {
|
|
61250 | 61322 | }
|
61251 | 61323 | ]
|
61252 | 61324 | },
|
61253 |
| - "_types.query_dsl:TokenPruningConfig": { |
61254 |
| - "type": "object", |
61255 |
| - "properties": { |
61256 |
| - "tokens_freq_ratio_threshold": { |
61257 |
| - "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.", |
61258 |
| - "type": "number" |
61259 |
| - }, |
61260 |
| - "tokens_weight_threshold": { |
61261 |
| - "description": "Tokens whose weight is less than this threshold are considered nonsignificant and pruned.", |
61262 |
| - "type": "number" |
61263 |
| - }, |
61264 |
| - "only_score_pruned_tokens": { |
61265 |
| - "description": "Whether to only score pruned tokens, vs only scoring kept tokens.", |
61266 |
| - "type": "boolean" |
61267 |
| - } |
61268 |
| - } |
61269 |
| - }, |
61270 | 61325 | "_types.query_dsl:WeightedTokensQuery": {
|
61271 | 61326 | "allOf": [
|
61272 | 61327 | {
|
|
0 commit comments