Skip to content

Commit ba6e7cc

Browse files
authored
Add score to CompletionSuggestOption (#1621) (#1629)
Make _id and _index optional
1 parent 402f898 commit ba6e7cc

File tree

3 files changed

+41
-28
lines changed

3 files changed

+41
-28
lines changed

output/schema/schema.json

Lines changed: 35 additions & 24 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: 3 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/suggester.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,14 @@ export class CompletionSuggestOption<TDocument> {
7373
collate_match?: boolean
7474
contexts?: Dictionary<string, Context[]>
7575
fields?: Dictionary<string, UserDefinedValue>
76-
_id: string
77-
_index: IndexName
76+
_id?: string
77+
_index?: IndexName
7878
_type?: Type
7979
_routing?: Routing
8080
_score?: double
8181
_source?: TDocument
8282
text: string
83+
score?: double
8384
}
8485

8586
export class PhraseSuggestOption {

0 commit comments

Comments
 (0)