From 029ebe9c353adfaa4c6e88b126ef22c64626b502 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 21 Sep 2023 10:04:19 +0400 Subject: [PATCH] Fix include type in Significant Text Agg (#2279) (#2292) --- output/schema/schema.json | 25 +++++---------------- output/typescript/types.ts | 2 +- specification/_types/aggregations/bucket.ts | 2 +- 3 files changed, 7 insertions(+), 22 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 5565dc2ce7..59bb69f964 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -46881,26 +46881,11 @@ "name": "include", "required": false, "type": { - "items": [ - { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - }, - { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - } - ], - "kind": "union_of" + "kind": "instance_of", + "type": { + "name": "TermsInclude", + "namespace": "_types.aggregations" + } } }, { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index c3618490f5..c352776067 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -3520,7 +3520,7 @@ export interface AggregationsSignificantTextAggregation extends AggregationsBuck field?: Field filter_duplicate_text?: boolean gnd?: AggregationsGoogleNormalizedDistanceHeuristic - include?: string | string[] + include?: AggregationsTermsInclude min_doc_count?: long mutual_information?: AggregationsMutualInformationHeuristic percentage?: AggregationsPercentageScoreHeuristic diff --git a/specification/_types/aggregations/bucket.ts b/specification/_types/aggregations/bucket.ts index 2dca74d2fa..f33f2944cb 100644 --- a/specification/_types/aggregations/bucket.ts +++ b/specification/_types/aggregations/bucket.ts @@ -334,7 +334,7 @@ export class SignificantTextAggregation extends BucketAggregationBase { field?: Field filter_duplicate_text?: boolean gnd?: GoogleNormalizedDistanceHeuristic - include?: string | string[] + include?: TermsInclude min_doc_count?: long mutual_information?: MutualInformationHeuristic percentage?: PercentageScoreHeuristic