Skip to content

Commit

Permalink
Revert "Change type from boolean -> Stringified<boolean> for `pre…
Browse files Browse the repository at this point in the history
…serve_original` and `indexing_complete` (#2182) (#2188)"

This reverts commit 457d842.
  • Loading branch information
flobernd committed Jul 17, 2023
1 parent 457d842 commit a2c9529
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 105 deletions.
106 changes: 17 additions & 89 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 @@ -80,7 +80,7 @@ export class EdgeNGramTokenFilter extends TokenFilterBase {
max_gram?: integer
min_gram?: integer
side?: EdgeNGramSide
preserve_original?: Stringified<boolean>
preserve_original?: boolean
}

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

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

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

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

export class NoriPartOfSpeechTokenFilter extends TokenFilterBase {
Expand All @@ -277,7 +277,7 @@ export class NoriPartOfSpeechTokenFilter extends TokenFilterBase {
export class PatternCaptureTokenFilter extends TokenFilterBase {
type: 'pattern_capture'
patterns: string[]
preserve_original?: Stringified<boolean>
preserve_original?: 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 @@ -344,7 +344,7 @@ export class IndexSettingsLifecycle {
* You can explicitly set it to skip rollover.
* @server_default false
*/
indexing_complete?: Stringified<boolean>
indexing_complete?: 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 a2c9529

Please sign in to comment.