diff --git a/output/schema/schema.json b/output/schema/schema.json index c9043c13fc..5520cc1d0f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -26213,7 +26213,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L215-L218" + "specLocation": "_global/msearch/types.ts#L214-L217" }, { "generics": [ @@ -26263,7 +26263,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L205-L208" + "specLocation": "_global/msearch/types.ts#L204-L207" }, { "kind": "interface", @@ -26371,23 +26371,11 @@ "type": { "kind": "array_of", "value": { - "items": [ - { - "kind": "instance_of", - "type": { - "name": "Field", - "namespace": "_types" - } - }, - { - "kind": "instance_of", - "type": { - "name": "FieldAndFormat", - "namespace": "_types.query_dsl" - } - } - ], - "kind": "union_of" + "kind": "instance_of", + "type": { + "name": "FieldAndFormat", + "namespace": "_types.query_dsl" + } } } }, @@ -26614,23 +26602,11 @@ "type": { "kind": "array_of", "value": { - "items": [ - { - "kind": "instance_of", - "type": { - "name": "Field", - "namespace": "_types" - } - }, - { - "kind": "instance_of", - "type": { - "name": "FieldAndFormat", - "namespace": "_types.query_dsl" - } - } - ], - "kind": "union_of" + "kind": "instance_of", + "type": { + "name": "FieldAndFormat", + "namespace": "_types.query_dsl" + } } } }, @@ -26760,7 +26736,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L72-L203" + "specLocation": "_global/msearch/types.ts#L71-L202" }, { "description": "Contains parameters used to limit or change the subsequent search body request.", @@ -26892,7 +26868,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L54-L69" + "specLocation": "_global/msearch/types.ts#L53-L68" }, { "attachedBehaviors": [ @@ -27103,7 +27079,7 @@ "name": "RequestItem", "namespace": "_global.msearch" }, - "specLocation": "_global/msearch/types.ts#L49-L52", + "specLocation": "_global/msearch/types.ts#L48-L51", "type": { "items": [ { @@ -27173,7 +27149,7 @@ "name": "ResponseItem", "namespace": "_global.msearch" }, - "specLocation": "_global/msearch/types.ts#L210-L213", + "specLocation": "_global/msearch/types.ts#L209-L212", "type": { "items": [ { @@ -30700,23 +30676,11 @@ "type": { "kind": "array_of", "value": { - "items": [ - { - "kind": "instance_of", - "type": { - "name": "Field", - "namespace": "_types" - } - }, - { - "kind": "instance_of", - "type": { - "name": "FieldAndFormat", - "namespace": "_types.query_dsl" - } - } - ], - "kind": "union_of" + "kind": "instance_of", + "type": { + "name": "FieldAndFormat", + "namespace": "_types.query_dsl" + } } } }, @@ -30942,23 +30906,11 @@ "type": { "kind": "array_of", "value": { - "items": [ - { - "kind": "instance_of", - "type": { - "name": "FieldAndFormat", - "namespace": "_types.query_dsl" - } - }, - { - "kind": "instance_of", - "type": { - "name": "Field", - "namespace": "_types" - } - } - ], - "kind": "union_of" + "kind": "instance_of", + "type": { + "name": "FieldAndFormat", + "namespace": "_types.query_dsl" + } } } }, @@ -35827,7 +35779,6 @@ { "codegenNames": [ "fetch", - "fields", "filter" ], "description": "Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered.", @@ -35846,13 +35797,6 @@ "namespace": "_builtins" } }, - { - "kind": "instance_of", - "type": { - "name": "Fields", - "namespace": "_types" - } - }, { "kind": "instance_of", "type": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index c601312b12..c3541c3766 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -728,7 +728,7 @@ export interface MsearchMultisearchBody { explain?: boolean ext?: Record stored_fields?: Fields - docvalue_fields?: (Field | QueryDslFieldAndFormat | Field)[] + docvalue_fields?: (QueryDslFieldAndFormat | Field)[] knn?: KnnQuery | KnnQuery[] from?: integer highlight?: SearchHighlight @@ -742,7 +742,7 @@ export interface MsearchMultisearchBody { size?: integer sort?: Sort _source?: SearchSourceConfig - fields?: (Field | QueryDslFieldAndFormat | Field)[] + fields?: (QueryDslFieldAndFormat | Field)[] terminate_after?: long stats?: string[] timeout?: string @@ -1194,7 +1194,7 @@ export interface SearchRequest extends RequestBase { highlight?: SearchHighlight track_total_hits?: SearchTrackHits indices_boost?: Record[] - docvalue_fields?: (Field | QueryDslFieldAndFormat | Field)[] + docvalue_fields?: (QueryDslFieldAndFormat | Field)[] knn?: KnnQuery | KnnQuery[] rank?: RankContainer min_score?: double @@ -1208,7 +1208,7 @@ export interface SearchRequest extends RequestBase { slice?: SlicedScroll sort?: Sort _source?: SearchSourceConfig - fields?: (QueryDslFieldAndFormat | Field | Field)[] + fields?: (QueryDslFieldAndFormat | Field)[] suggest?: SearchSuggester terminate_after?: long timeout?: string @@ -1632,7 +1632,7 @@ export interface SearchSmoothingModelContainer { stupid_backoff?: SearchStupidBackoffSmoothingModel } -export type SearchSourceConfig = boolean | Fields | SearchSourceFilter | Fields +export type SearchSourceConfig = boolean | SearchSourceFilter | Fields export type SearchSourceConfigParam = boolean | Fields diff --git a/specification/_global/msearch/types.ts b/specification/_global/msearch/types.ts index 47c382d1b9..46934beba4 100644 --- a/specification/_global/msearch/types.ts +++ b/specification/_global/msearch/types.ts @@ -23,7 +23,6 @@ import { Dictionary } from '@spec_utils/Dictionary' import { AggregationContainer } from '@_types/aggregations/AggregationContainer' import { ExpandWildcards, - Field, Fields, IndexName, Indices, @@ -97,7 +96,7 @@ export class MultisearchBody { * Array of wildcard (*) patterns. The request returns doc values for field * names matching these patterns in the hits.fields property of the response. */ - docvalue_fields?: Array + docvalue_fields?: FieldAndFormat[] /** * Defines the approximate kNN search to run. * @availability stack since=8.4.0 @@ -147,7 +146,7 @@ export class MultisearchBody { * Array of wildcard (*) patterns. The request returns values for field names * matching these patterns in the hits.fields property of the response. */ - fields?: Array + fields?: Array /** * Maximum number of documents to collect for each shard. If a query reaches this * limit, Elasticsearch terminates the query early. Elasticsearch collects documents diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index bdbf484422..2ef86e22a0 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -371,7 +371,7 @@ export interface Request extends RequestBase { * Array of wildcard (`*`) patterns. * The request returns doc values for field names matching these patterns in the `hits.fields` property of the response. */ - docvalue_fields?: Array + docvalue_fields?: FieldAndFormat[] /** * Defines the approximate kNN search to run. * @availability stack since=8.4.0 @@ -442,7 +442,7 @@ export interface Request extends RequestBase { * Array of wildcard (`*`) patterns. * The request returns values for field names matching these patterns in the `hits.fields` property of the response. */ - fields?: Array + fields?: Array /** * Defines a suggester that provides similar looking terms based on a provided text. */ diff --git a/specification/_global/search/_types/SourceFilter.ts b/specification/_global/search/_types/SourceFilter.ts index b2b2c05071..6b48c59f79 100644 --- a/specification/_global/search/_types/SourceFilter.ts +++ b/specification/_global/search/_types/SourceFilter.ts @@ -32,9 +32,9 @@ export class SourceFilter { /** * Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered. - * @codegen_names fetch, fields, filter + * @codegen_names fetch, filter */ -export type SourceConfig = boolean | Fields | SourceFilter +export type SourceConfig = boolean | SourceFilter /** * Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered.