Skip to content

Commit

Permalink
Change type from boolean -> Stringified<boolean> for `preserve_or…
Browse files Browse the repository at this point in the history
…iginal` and `indexing_complete` (#2182)
  • Loading branch information
flobernd authored Jul 17, 2023
1 parent 2ba9674 commit 0ee7190
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 33 deletions.
106 changes: 89 additions & 17 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions specification/_types/analysis/token_filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class EdgeNGramTokenFilter extends TokenFilterBase {
max_gram?: integer
min_gram?: integer
side?: EdgeNGramSide
preserve_original?: boolean
preserve_original?: Stringified<boolean>
}

export class ShingleTokenFilter extends TokenFilterBase {
Expand Down Expand Up @@ -136,7 +136,7 @@ export class WordDelimiterTokenFilter extends TokenFilterBase {
catenate_words?: boolean
generate_number_parts?: boolean
generate_word_parts?: boolean
preserve_original?: boolean
preserve_original?: Stringified<boolean>
protected_words?: string[]
protected_words_path?: string
split_on_case_change?: boolean
Expand All @@ -155,7 +155,7 @@ export class WordDelimiterGraphTokenFilter extends TokenFilterBase {
generate_number_parts?: boolean
generate_word_parts?: boolean
ignore_keywords?: boolean
preserve_original?: boolean
preserve_original?: Stringified<boolean>
protected_words?: string[]
protected_words_path?: string
split_on_case_change?: boolean
Expand All @@ -167,7 +167,7 @@ export class WordDelimiterGraphTokenFilter extends TokenFilterBase {

export class AsciiFoldingTokenFilter extends TokenFilterBase {
type: 'asciifolding'
preserve_original?: boolean
preserve_original?: Stringified<boolean>
}

export class CommonGramsTokenFilter extends TokenFilterBase {
Expand Down Expand Up @@ -260,14 +260,14 @@ export class LowercaseTokenFilter extends TokenFilterBase {
export class MultiplexerTokenFilter extends TokenFilterBase {
type: 'multiplexer'
filters: string[]
preserve_original?: boolean
preserve_original?: Stringified<boolean>
}

export class NGramTokenFilter extends TokenFilterBase {
type: 'ngram'
max_gram?: integer
min_gram?: integer
preserve_original?: boolean
preserve_original?: Stringified<boolean>
}

export class NoriPartOfSpeechTokenFilter extends TokenFilterBase {
Expand All @@ -278,7 +278,7 @@ export class NoriPartOfSpeechTokenFilter extends TokenFilterBase {
export class PatternCaptureTokenFilter extends TokenFilterBase {
type: 'pattern_capture'
patterns: string[]
preserve_original?: boolean
preserve_original?: Stringified<boolean>
}

export class PatternReplaceTokenFilter extends TokenFilterBase {
Expand Down
2 changes: 1 addition & 1 deletion specification/indices/_types/IndexSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export class IndexSettingsLifecycle {
* You can explicitly set it to skip rollover.
* @server_default false
*/
indexing_complete?: boolean
indexing_complete?: Stringified<boolean>
/**
* If specified, this is the timestamp used to calculate the index age for its phase transitions. Use this setting
* if you create a new index that contains old data and want to use the original creation date to calculate the index
Expand Down

0 comments on commit 0ee7190

Please sign in to comment.