From 2b51b3f70f179a036017604d8497529159ab64cd Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Wed, 20 Sep 2023 10:27:10 +0400 Subject: [PATCH] Fix include type in Significant Text Agg (#2279) --- 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 2c6d0cfe17..b2963c398f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -57373,26 +57373,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 f5369efa92..75004203f9 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -3926,7 +3926,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 f429759537..232e799f20 100644 --- a/specification/_types/aggregations/bucket.ts +++ b/specification/_types/aggregations/bucket.ts @@ -865,7 +865,7 @@ export class SignificantTextAggregation extends BucketAggregationBase { /** * Values to include. */ - include?: string | string[] + include?: TermsInclude /** * Use JLH score as the significance score. */