Skip to content

Commit 788ceeb

Browse files
swallezpquentin
andauthored
max_score and _score are required (and can be null) (#1144)
* max_score and _score are required (and can be null) * Better with "make contrib" --------- Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
1 parent 5b1e0ef commit 788ceeb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

output/schema/schema.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/search/_types/hits.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class Hit<TDocument> {
4444
* on a search request. Otherwise the field is always present on hits.
4545
*/
4646
_id?: Id
47-
_score?: double | null
47+
_score: double | null
4848
_explanation?: Explanation
4949
fields?: Dictionary<string, UserDefinedValue>
5050
highlight?: Dictionary<string, string[]>
@@ -69,7 +69,7 @@ export class HitsMetadata<T> {
6969
total?: TotalHits | long
7070
hits: Hit<T>[]
7171

72-
max_score?: double | null
72+
max_score: double | null
7373
}
7474

7575
export class HitMetadata<TDocument> {

0 commit comments

Comments
 (0)