Skip to content

Commit 65e6ff3

Browse files
authored
Revert "[8.11] Allow single fields in fields and _source parameters (#2330)"
This reverts commit 723ddd8.
1 parent 723ddd8 commit 65e6ff3

File tree

5 files changed

+37
-94
lines changed

5 files changed

+37
-94
lines changed

output/schema/schema.json

Lines changed: 26 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/msearch/types.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { Dictionary } from '@spec_utils/Dictionary'
2323
import { AggregationContainer } from '@_types/aggregations/AggregationContainer'
2424
import {
2525
ExpandWildcards,
26-
Field,
2726
Fields,
2827
IndexName,
2928
Indices,
@@ -97,7 +96,7 @@ export class MultisearchBody {
9796
* Array of wildcard (*) patterns. The request returns doc values for field
9897
* names matching these patterns in the hits.fields property of the response.
9998
*/
100-
docvalue_fields?: Array<Field | FieldAndFormat>
99+
docvalue_fields?: FieldAndFormat[]
101100
/**
102101
* Defines the approximate kNN search to run.
103102
* @availability stack since=8.4.0
@@ -147,7 +146,7 @@ export class MultisearchBody {
147146
* Array of wildcard (*) patterns. The request returns values for field names
148147
* matching these patterns in the hits.fields property of the response.
149148
*/
150-
fields?: Array<Field | FieldAndFormat>
149+
fields?: Array<FieldAndFormat>
151150
/**
152151
* Maximum number of documents to collect for each shard. If a query reaches this
153152
* limit, Elasticsearch terminates the query early. Elasticsearch collects documents

specification/_global/search/SearchRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export interface Request extends RequestBase {
371371
* Array of wildcard (`*`) patterns.
372372
* The request returns doc values for field names matching these patterns in the `hits.fields` property of the response.
373373
*/
374-
docvalue_fields?: Array<Field | FieldAndFormat>
374+
docvalue_fields?: FieldAndFormat[]
375375
/**
376376
* Defines the approximate kNN search to run.
377377
* @availability stack since=8.4.0
@@ -442,7 +442,7 @@ export interface Request extends RequestBase {
442442
* Array of wildcard (`*`) patterns.
443443
* The request returns values for field names matching these patterns in the `hits.fields` property of the response.
444444
*/
445-
fields?: Array<FieldAndFormat | Field>
445+
fields?: Array<FieldAndFormat>
446446
/**
447447
* Defines a suggester that provides similar looking terms based on a provided text.
448448
*/

specification/_global/search/_types/SourceFilter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ export class SourceFilter {
3232

3333
/**
3434
* Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered.
35-
* @codegen_names fetch, fields, filter
35+
* @codegen_names fetch, filter
3636
*/
37-
export type SourceConfig = boolean | Fields | SourceFilter
37+
export type SourceConfig = boolean | SourceFilter
3838

3939
/**
4040
* Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered.

0 commit comments

Comments
 (0)