Skip to content

Commit 88bcaaa

Browse files
authored
Add optional query param in _field_caps to return only fields with value in index (#2413)
1 parent 4cb8434 commit 88bcaaa

File tree

5 files changed

+56
-1
lines changed

5 files changed

+56
-1
lines changed

output/openapi/elasticsearch-serverless-openapi.json

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

output/schema/schema.json

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

output/typescript/types.ts

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

specification/_global/field_caps/FieldCapabilitiesRequest.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ export interface Request extends RequestBase {
7575
* @availability serverless
7676
*/
7777
types?: string[]
78+
/**
79+
* If false, empty fields are not included in the response.
80+
* @availability stack since=8.13.0
81+
* @availability serverless
82+
* @server_default true
83+
*/
84+
include_empty_fields?: boolean
7885
}
7986
body: {
8087
/**

specification/_json_spec/field_caps.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@
5959
"types": {
6060
"type": "list",
6161
"description": "Only return results for fields that have one of the types in the list"
62+
},
63+
"include_empty_fields": {
64+
"type": "boolean",
65+
"default": true,
66+
"description": "Indicates whether empty fields should be included in the response."
6267
}
6368
},
6469
"body": {

0 commit comments

Comments
 (0)