diff --git a/output/schema/schema.json b/output/schema/schema.json index fc9c4bfdf7..5359ca8310 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -42059,7 +42059,7 @@ }, { "name": "_score", - "required": false, + "required": true, "type": { "kind": "union_of", "items": [ @@ -42403,7 +42403,7 @@ }, { "name": "max_score", - "required": false, + "required": true, "type": { "kind": "union_of", "items": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index bfa9561162..ac25f26433 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1480,7 +1480,7 @@ export type SearchHighlighterType = 'plain' | 'fvh' | 'unified'| string export interface SearchHit { _index: IndexName _id?: Id - _score?: double | null + _score: double | null _explanation?: ExplainExplanation fields?: Record highlight?: Record @@ -1503,7 +1503,7 @@ export interface SearchHit { export interface SearchHitsMetadata { total?: SearchTotalHits | long hits: SearchHit[] - max_score?: double | null + max_score: double | null } export interface SearchInnerHits { diff --git a/specification/_global/search/_types/hits.ts b/specification/_global/search/_types/hits.ts index 8bcec18af7..331244c7b2 100644 --- a/specification/_global/search/_types/hits.ts +++ b/specification/_global/search/_types/hits.ts @@ -44,7 +44,7 @@ export class Hit { * on a search request. Otherwise the field is always present on hits. */ _id?: Id - _score?: double | null + _score: double | null _explanation?: Explanation fields?: Dictionary highlight?: Dictionary @@ -69,7 +69,7 @@ export class HitsMetadata { total?: TotalHits | long hits: Hit[] - max_score?: double | null + max_score: double | null } export class HitMetadata {