Skip to content

Commit 5e90767

Browse files
authored
[7.17] Add collate_match and highlighted to SuggestionOptions
1 parent 776e05c commit 5e90767

File tree

3 files changed

+73
-34
lines changed

3 files changed

+73
-34
lines changed

output/schema/schema.json

Lines changed: 63 additions & 30 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: 5 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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,17 @@ export class CompletionSuggestOption<TDocument> {
8787

8888
export class PhraseSuggestOption {
8989
text: string
90-
highlighted: string
9190
score: double
91+
highlighted?: string
92+
collate_match?: boolean
9293
}
9394

9495
export class TermSuggestOption {
9596
text: string
96-
freq: long
9797
score: double
98+
freq: long
99+
highlighted?: string
100+
collate_match?: boolean
98101
}
99102

100103
export class Suggester implements AdditionalProperties<string, FieldSuggester> {

0 commit comments

Comments
 (0)