Skip to content

Commit c32fdba

Browse files
committed
max_score and _score are required (and can be null)
1 parent 39c933a commit c32fdba

File tree

1 file changed

+2
-2
lines changed
  • specification/_global/search/_types

1 file changed

+2
-2
lines changed

specification/_global/search/_types/hits.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import { Sort, SortResults } from '@_types/sort'
4040
export class Hit<TDocument> {
4141
_index: IndexName
4242
_id: Id
43-
_score?: double | null
43+
_score: double | null
4444
_explanation?: Explanation
4545
fields?: Dictionary<string, UserDefinedValue>
4646
highlight?: Dictionary<string, string[]>
@@ -64,7 +64,7 @@ export class HitsMetadata<T> {
6464
total?: TotalHits | long
6565
hits: Hit<T>[]
6666

67-
max_score?: double | null
67+
max_score: double | null
6868
}
6969

7070
export class HitMetadata<TDocument> {

0 commit comments

Comments
 (0)