Skip to content

Commit 3615b07

Browse files
Remove string variant for token_chars field (#5036) (#5037)
It does not bring value. (cherry picked from commit cf6914e) Co-authored-by: Quentin Pradet <[email protected]>
1 parent 199fe53 commit 3615b07

File tree

5 files changed

+43
-59
lines changed

5 files changed

+43
-59
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 5 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 5 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 26 additions & 35 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: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_types/analysis/tokenizers.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ export class EdgeNGramTokenizer extends TokenizerBase {
5050
custom_token_chars?: string
5151
max_gram?: integer
5252
min_gram?: integer
53-
token_chars?: string | TokenChar[]
53+
/**
54+
* @es_quirk A comma-separated string is also accepted but the enum array is enough
55+
* @server_default []
56+
*/
57+
token_chars?: TokenChar[]
5458
}
5559

5660
export enum TokenChar {
@@ -84,6 +88,7 @@ export class NGramTokenizer extends TokenizerBase {
8488
max_gram?: integer
8589
min_gram?: integer
8690
/**
91+
* @es_quirk A comma-separated string is also accepted but the enum array is enough
8792
* @server_default []
8893
*/
8994
token_chars?: TokenChar[]

0 commit comments

Comments
 (0)