Skip to content

Commit a97ec59

Browse files
Add score to CompletionSuggestOption (#1621) (#1627)
Make _id and _index optional Co-authored-by: Laurent Saint-Félix <[email protected]>
1 parent a5d6ac5 commit a97ec59

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
@@ -72,12 +72,13 @@ export class CompletionSuggestOption<TDocument> {
7272
collate_match?: boolean
7373
contexts?: Dictionary<string, Context[]>
7474
fields?: Dictionary<string, UserDefinedValue>
75-
_id: string
76-
_index: IndexName
75+
_id?: string
76+
_index?: IndexName
7777
_routing?: Routing
7878
_score?: double
7979
_source?: TDocument
8080
text: string
81+
score?: double
8182
}
8283

8384
export class PhraseSuggestOption {

0 commit comments

Comments
 (0)