diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 9471d313bb..e5fd612da2 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -55450,6 +55450,9 @@ "_source": { "type": "object" }, + "_rank": { + "type": "number" + }, "_seq_no": { "$ref": "#/components/schemas/_types:SequenceNumber" }, @@ -94667,7 +94670,7 @@ "description": "How much influence documents in individual result sets per query have over the final ranked result set", "type": "number" }, - "window_size": { + "rank_window_size": { "description": "Size of the individual result sets per query", "type": "number" } diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 623caeee81..5d19bc6cd8 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -32388,6 +32388,9 @@ "_source": { "type": "object" }, + "_rank": { + "type": "number" + }, "_seq_no": { "$ref": "#/components/schemas/_types:SequenceNumber" }, @@ -60464,7 +60467,7 @@ "description": "How much influence documents in individual result sets per query have over the final ranked result set", "type": "number" }, - "window_size": { + "rank_window_size": { "description": "Size of the individual result sets per query", "type": "number" } diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 870569c69d..f4333ede28 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -52085,7 +52085,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L106-L140" + "specLocation": "_global/search/_types/hits.ts#L107-L141" }, { "kind": "type_alias", @@ -67710,7 +67710,7 @@ "name": "TrackHits", "namespace": "_global.search._types" }, - "specLocation": "_global/search/_types/hits.ts#L142-L150", + "specLocation": "_global/search/_types/hits.ts#L143-L151", "type": { "items": [ { @@ -69834,7 +69834,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L66-L72" + "specLocation": "_global/search/_types/hits.ts#L67-L73" }, { "kind": "interface", @@ -69866,7 +69866,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L94-L97" + "specLocation": "_global/search/_types/hits.ts#L95-L98" }, { "kind": "enum", @@ -69884,7 +69884,7 @@ "name": "TotalHitsRelation", "namespace": "_global.search._types" }, - "specLocation": "_global/search/_types/hits.ts#L99-L104" + "specLocation": "_global/search/_types/hits.ts#L100-L105" }, { "generics": [ @@ -70129,6 +70129,17 @@ } } }, + { + "name": "_rank", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, { "name": "_seq_no", "required": false, @@ -70174,7 +70185,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L40-L64" + "specLocation": "_global/search/_types/hits.ts#L40-L65" }, { "kind": "interface", @@ -70292,7 +70303,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L84-L86" + "specLocation": "_global/search/_types/hits.ts#L85-L87" }, { "kind": "interface", @@ -70335,7 +70346,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L88-L92" + "specLocation": "_global/search/_types/hits.ts#L89-L93" }, { "description": "The aggregation name as returned from the server. Depending whether typed_keys is specified this could come back\nin the form of `name#type` instead of simply `name`", @@ -133938,7 +133949,7 @@ }, { "description": "Size of the individual result sets per query", - "name": "window_size", + "name": "rank_window_size", "required": false, "type": { "kind": "instance_of", diff --git a/output/schema/schema.json b/output/schema/schema.json index 91247c35e2..5be395eb30 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -36742,6 +36742,17 @@ } } }, + { + "name": "_rank", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, { "name": "_seq_no", "required": false, @@ -36787,7 +36798,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L40-L64" + "specLocation": "_global/search/_types/hits.ts#L40-L65" }, { "generics": [ @@ -36873,7 +36884,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L66-L72" + "specLocation": "_global/search/_types/hits.ts#L67-L73" }, { "kind": "interface", @@ -37080,7 +37091,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L106-L140" + "specLocation": "_global/search/_types/hits.ts#L107-L141" }, { "kind": "interface", @@ -37106,7 +37117,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L84-L86" + "specLocation": "_global/search/_types/hits.ts#L85-L87" }, { "kind": "interface", @@ -37255,7 +37266,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L88-L92" + "specLocation": "_global/search/_types/hits.ts#L89-L93" }, { "inherits": { @@ -39088,7 +39099,7 @@ } } ], - "specLocation": "_global/search/_types/hits.ts#L94-L97" + "specLocation": "_global/search/_types/hits.ts#L95-L98" }, { "kind": "enum", @@ -39106,7 +39117,7 @@ "name": "TotalHitsRelation", "namespace": "_global.search._types" }, - "specLocation": "_global/search/_types/hits.ts#L99-L104" + "specLocation": "_global/search/_types/hits.ts#L100-L105" }, { "codegenNames": [ @@ -39119,7 +39130,7 @@ "name": "TrackHits", "namespace": "_global.search._types" }, - "specLocation": "_global/search/_types/hits.ts#L142-L150", + "specLocation": "_global/search/_types/hits.ts#L143-L151", "type": { "items": [ { @@ -47981,7 +47992,7 @@ }, { "description": "Size of the individual result sets per query", - "name": "window_size", + "name": "rank_window_size", "required": false, "type": { "kind": "instance_of", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index e753836395..c7619ceb75 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1469,6 +1469,7 @@ export interface SearchHit { _node?: string _routing?: string _source?: TDocument + _rank?: integer _seq_no?: SequenceNumber _primary_term?: long _version?: VersionNumber @@ -2586,7 +2587,7 @@ export type Routing = string export interface RrfRank { rank_constant?: long - window_size?: long + rank_window_size?: long } export type ScalarValue = long | double | string | boolean | null diff --git a/specification/_global/search/_types/hits.ts b/specification/_global/search/_types/hits.ts index a4300dd5c1..c98adbdd69 100644 --- a/specification/_global/search/_types/hits.ts +++ b/specification/_global/search/_types/hits.ts @@ -57,6 +57,7 @@ export class Hit { _node?: string _routing?: string _source?: TDocument + _rank?: integer _seq_no?: SequenceNumber _primary_term?: long _version?: VersionNumber diff --git a/specification/_types/Rank.ts b/specification/_types/Rank.ts index c19e3f5de4..c24bbf11da 100644 --- a/specification/_types/Rank.ts +++ b/specification/_types/Rank.ts @@ -33,5 +33,5 @@ export class RrfRank extends RankBase { /** How much influence documents in individual result sets per query have over the final ranked result set */ rank_constant?: long /** Size of the individual result sets per query */ - window_size?: long + rank_window_size?: long }