From 709f35818fd8553c2ab8f3134e55db645f3cf977 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 21 Sep 2023 10:04:14 +0400 Subject: [PATCH] Fix include type in Significant Text Agg (#2279) (#2291) --- 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 b700c378b1..9566514cec 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -51467,26 +51467,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 948f436e73..98c55e7b21 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -3861,7 +3861,7 @@ export interface AggregationsSignificantTextAggregation extends AggregationsBuck field?: Field filter_duplicate_text?: boolean gnd?: AggregationsGoogleNormalizedDistanceHeuristic - include?: string | string[] + include?: AggregationsTermsInclude jlh?: EmptyObject min_doc_count?: long mutual_information?: AggregationsMutualInformationHeuristic diff --git a/specification/_types/aggregations/bucket.ts b/specification/_types/aggregations/bucket.ts index 2b7c4f53c2..ef3e66a3fe 100644 --- a/specification/_types/aggregations/bucket.ts +++ b/specification/_types/aggregations/bucket.ts @@ -365,7 +365,7 @@ export class SignificantTextAggregation extends BucketAggregationBase { field?: Field filter_duplicate_text?: boolean gnd?: GoogleNormalizedDistanceHeuristic - include?: string | string[] + include?: TermsInclude jlh?: EmptyObject min_doc_count?: long mutual_information?: MutualInformationHeuristic