diff --git a/output/schema/schema.json b/output/schema/schema.json index 74eda3f67f..e0d19f2c94 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -25480,11 +25480,23 @@ "name": "_score", "required": false, "type": { - "kind": "instance_of", - "type": { - "name": "double", - "namespace": "_types" - } + "items": [ + { + "kind": "instance_of", + "type": { + "name": "double", + "namespace": "_types" + } + }, + { + "kind": "instance_of", + "type": { + "name": "null", + "namespace": "internal" + } + } + ], + "kind": "union_of" } }, { @@ -25692,7 +25704,7 @@ } ], "specLocation": { - "endLine": 62, + "endLine": 60, "path": "_global/search/_types/hits.ts", "startLine": 40 } @@ -25760,18 +25772,30 @@ "name": "max_score", "required": false, "type": { - "kind": "instance_of", - "type": { - "name": "double", - "namespace": "_types" - } + "items": [ + { + "kind": "instance_of", + "type": { + "name": "double", + "namespace": "_types" + } + }, + { + "kind": "instance_of", + "type": { + "name": "null", + "namespace": "internal" + } + } + ], + "kind": "union_of" } } ], "specLocation": { - "endLine": 69, + "endLine": 67, "path": "_global/search/_types/hits.ts", - "startLine": 64 + "startLine": 62 } }, { @@ -25974,9 +25998,9 @@ } ], "specLocation": { - "endLine": 121, + "endLine": 119, "path": "_global/search/_types/hits.ts", - "startLine": 103 + "startLine": 101 } }, { @@ -26004,9 +26028,9 @@ } ], "specLocation": { - "endLine": 83, + "endLine": 81, "path": "_global/search/_types/hits.ts", - "startLine": 81 + "startLine": 79 } }, { @@ -26123,9 +26147,9 @@ } ], "specLocation": { - "endLine": 89, + "endLine": 87, "path": "_global/search/_types/hits.ts", - "startLine": 85 + "startLine": 83 } }, { @@ -27828,9 +27852,9 @@ } ], "specLocation": { - "endLine": 94, + "endLine": 92, "path": "_global/search/_types/hits.ts", - "startLine": 91 + "startLine": 89 } }, { @@ -27850,9 +27874,9 @@ "namespace": "_global.search._types" }, "specLocation": { - "endLine": 101, + "endLine": 99, "path": "_global/search/_types/hits.ts", - "startLine": 96 + "startLine": 94 } }, { @@ -27867,9 +27891,9 @@ "namespace": "_global.search._types" }, "specLocation": { - "endLine": 131, + "endLine": 129, "path": "_global/search/_types/hits.ts", - "startLine": 123 + "startLine": 121 }, "type": { "items": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index be4d66df53..e28ba0f803 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1247,7 +1247,7 @@ export type SearchHighlighterType = SearchBuiltinHighlighterType | string export interface SearchHit { _index: IndexName _id: Id - _score?: double + _score?: double | null _explanation?: ExplainExplanation fields?: Record highlight?: Record @@ -1268,7 +1268,7 @@ export interface SearchHit { export interface SearchHitsMetadata { total: SearchTotalHits | long hits: SearchHit[] - max_score?: double + max_score?: double | null } export interface SearchInnerHits { diff --git a/specification/_global/search/_types/hits.ts b/specification/_global/search/_types/hits.ts index d8b112ec3a..afaff4fdef 100644 --- a/specification/_global/search/_types/hits.ts +++ b/specification/_global/search/_types/hits.ts @@ -40,9 +40,7 @@ import { Sort, SortResults } from '@_types/sort' export class Hit { _index: IndexName _id: Id - - _score?: double - + _score?: double | null _explanation?: Explanation fields?: Dictionary highlight?: Dictionary @@ -65,7 +63,7 @@ export class HitsMetadata { total: TotalHits | long hits: Hit[] - max_score?: double + max_score?: double | null } export class HitMetadata {