diff --git a/output/schema/schema.json b/output/schema/schema.json index 8f8da758e3..6cf4760726 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -35620,7 +35620,7 @@ }, { "name": "_score", - "required": false, + "required": true, "type": { "items": [ { @@ -35934,7 +35934,7 @@ }, { "name": "max_score", - "required": false, + "required": true, "type": { "items": [ { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 0fc3aec26a..e6658358dd 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1454,7 +1454,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 @@ -1476,7 +1476,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 a4300dd5c1..7c52e8321e 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 @@ -68,7 +68,7 @@ export class HitsMetadata { total?: TotalHits | long hits: Hit[] - max_score?: double | null + max_score: double | null } export class HitMetadata {