From db7de55c42cf7865e79523d91e4090bc2abf9ddb Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Tue, 16 Apr 2024 12:27:15 +0200 Subject: [PATCH] adding synonyms set to filters (#2515) --- .../elasticsearch-serverless-openapi.json | 6 ++ output/schema/schema.json | 94 ++++++++++++------- output/typescript/types.ts | 2 + .../_types/analysis/token_filters.ts | 2 + 4 files changed, 68 insertions(+), 36 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 7b5de87447..149cf6f3e4 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -43767,6 +43767,9 @@ "synonyms_path": { "type": "string" }, + "synonyms_set": { + "type": "string" + }, "tokenizer": { "type": "string" }, @@ -43819,6 +43822,9 @@ "synonyms_path": { "type": "string" }, + "synonyms_set": { + "type": "string" + }, "tokenizer": { "type": "string" }, diff --git a/output/schema/schema.json b/output/schema/schema.json index 7e8198f71f..a159957867 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -61477,7 +61477,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L168-L171" + "specLocation": "_types/analysis/token_filters.ts#L170-L173" }, { "codegenNames": [ @@ -61702,7 +61702,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L173-L179" + "specLocation": "_types/analysis/token_filters.ts#L175-L181" }, { "inherits": { @@ -61847,7 +61847,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L181-L185" + "specLocation": "_types/analysis/token_filters.ts#L183-L187" }, { "kind": "interface", @@ -62323,7 +62323,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L187-L192" + "specLocation": "_types/analysis/token_filters.ts#L189-L194" }, { "kind": "interface", @@ -62453,7 +62453,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L194-L198" + "specLocation": "_types/analysis/token_filters.ts#L196-L200" }, { "inherits": { @@ -62559,7 +62559,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L200-L206" + "specLocation": "_types/analysis/token_filters.ts#L202-L208" }, { "inherits": { @@ -63124,7 +63124,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L239-L241" + "specLocation": "_types/analysis/token_filters.ts#L241-L243" }, { "kind": "enum", @@ -63140,7 +63140,7 @@ "name": "KeepTypesMode", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/token_filters.ts#L213-L216" + "specLocation": "_types/analysis/token_filters.ts#L215-L218" }, { "inherits": { @@ -63189,7 +63189,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L218-L222" + "specLocation": "_types/analysis/token_filters.ts#L220-L224" }, { "inherits": { @@ -63249,7 +63249,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L224-L229" + "specLocation": "_types/analysis/token_filters.ts#L226-L231" }, { "kind": "interface", @@ -63349,7 +63349,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L231-L237" + "specLocation": "_types/analysis/token_filters.ts#L233-L239" }, { "inherits": { @@ -63935,7 +63935,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L243-L247" + "specLocation": "_types/analysis/token_filters.ts#L245-L249" }, { "inherits": { @@ -64014,7 +64014,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L249-L253" + "specLocation": "_types/analysis/token_filters.ts#L251-L255" }, { "kind": "interface", @@ -64067,7 +64067,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L255-L258" + "specLocation": "_types/analysis/token_filters.ts#L257-L260" }, { "inherits": { @@ -64198,7 +64198,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L260-L264" + "specLocation": "_types/analysis/token_filters.ts#L262-L266" }, { "inherits": { @@ -64264,7 +64264,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L266-L271" + "specLocation": "_types/analysis/token_filters.ts#L268-L273" }, { "inherits": { @@ -64457,7 +64457,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L273-L276" + "specLocation": "_types/analysis/token_filters.ts#L275-L278" }, { "inherits": { @@ -64798,7 +64798,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L278-L282" + "specLocation": "_types/analysis/token_filters.ts#L280-L284" }, { "inherits": { @@ -64923,7 +64923,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L284-L290" + "specLocation": "_types/analysis/token_filters.ts#L286-L292" }, { "inherits": { @@ -65224,7 +65224,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L292-L294" + "specLocation": "_types/analysis/token_filters.ts#L294-L296" }, { "inherits": { @@ -65259,7 +65259,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L296-L299" + "specLocation": "_types/analysis/token_filters.ts#L298-L301" }, { "inherits": { @@ -65283,7 +65283,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L301-L303" + "specLocation": "_types/analysis/token_filters.ts#L303-L305" }, { "inherits": { @@ -65307,7 +65307,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L305-L307" + "specLocation": "_types/analysis/token_filters.ts#L307-L309" }, { "inherits": { @@ -65612,7 +65612,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L309-L312" + "specLocation": "_types/analysis/token_filters.ts#L311-L314" }, { "kind": "interface", @@ -65736,7 +65736,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L314-L318" + "specLocation": "_types/analysis/token_filters.ts#L316-L320" }, { "inherits": { @@ -65774,7 +65774,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L320-L324" + "specLocation": "_types/analysis/token_filters.ts#L322-L326" }, { "kind": "interface", @@ -66021,6 +66021,17 @@ } } }, + { + "name": "synonyms_set", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, { "name": "tokenizer", "required": false, @@ -66044,7 +66055,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L110-L119" + "specLocation": "_types/analysis/token_filters.ts#L110-L120" }, { "inherits": { @@ -66125,6 +66136,17 @@ } } }, + { + "name": "synonyms_set", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, { "name": "tokenizer", "required": false, @@ -66148,7 +66170,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L121-L130" + "specLocation": "_types/analysis/token_filters.ts#L122-L132" }, { "kind": "enum", @@ -66188,7 +66210,7 @@ "name": "TokenFilter", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/token_filters.ts#L344-L346", + "specLocation": "_types/analysis/token_filters.ts#L346-L348", "type": { "items": [ { @@ -66236,7 +66258,7 @@ "name": "TokenFilterDefinition", "namespace": "_types.analysis" }, - "specLocation": "_types/analysis/token_filters.ts#L348-L401", + "specLocation": "_types/analysis/token_filters.ts#L350-L403", "type": { "items": [ { @@ -66774,7 +66796,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L326-L328" + "specLocation": "_types/analysis/token_filters.ts#L328-L330" }, { "inherits": { @@ -66809,7 +66831,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L330-L333" + "specLocation": "_types/analysis/token_filters.ts#L332-L335" }, { "inherits": { @@ -66879,7 +66901,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L335-L338" + "specLocation": "_types/analysis/token_filters.ts#L337-L340" }, { "inherits": { @@ -66903,7 +66925,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L340-L342" + "specLocation": "_types/analysis/token_filters.ts#L342-L344" }, { "kind": "interface", @@ -67171,7 +67193,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L149-L166" + "specLocation": "_types/analysis/token_filters.ts#L151-L168" }, { "inherits": { @@ -67353,7 +67375,7 @@ } } ], - "specLocation": "_types/analysis/token_filters.ts#L132-L147" + "specLocation": "_types/analysis/token_filters.ts#L134-L149" }, { "inherits": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 61cbc119d3..d13d7e7624 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -4760,6 +4760,7 @@ export interface AnalysisSynonymGraphTokenFilter extends AnalysisTokenFilterBase lenient?: boolean synonyms?: string[] synonyms_path?: string + synonyms_set?: string tokenizer?: string updateable?: boolean } @@ -4771,6 +4772,7 @@ export interface AnalysisSynonymTokenFilter extends AnalysisTokenFilterBase { lenient?: boolean synonyms?: string[] synonyms_path?: string + synonyms_set?: string tokenizer?: string updateable?: boolean } diff --git a/specification/_types/analysis/token_filters.ts b/specification/_types/analysis/token_filters.ts index 3812fffd84..3c0579086d 100644 --- a/specification/_types/analysis/token_filters.ts +++ b/specification/_types/analysis/token_filters.ts @@ -114,6 +114,7 @@ export class SynonymGraphTokenFilter extends TokenFilterBase { lenient?: boolean synonyms?: string[] synonyms_path?: string + synonyms_set?: string tokenizer?: string updateable?: boolean } @@ -125,6 +126,7 @@ export class SynonymTokenFilter extends TokenFilterBase { lenient?: boolean synonyms?: string[] synonyms_path?: string + synonyms_set?: string tokenizer?: string updateable?: boolean }